/* PAPS Catálogo Único - Flipbook normal responsive / cover fix */

.paps-catalogo-unico,
.paps-catalogo-unico * {
    box-sizing: border-box;
}

.paps-catalogo-unico .container {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.paps-catalogo-hero {
    padding: 30px 0 30px;
    background: #f5f5f5;
}
.container.paps-catalogo-hero-inner::before, 
.container.paps-catalogo-hero-inner::after{
    display: none !important;
}
.paps-catalogo-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.paps-catalogo-hero-copy {
    min-width: 0;
}

.paps-catalogo-breadcrumb {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.4;
    text-transform: uppercase;
    opacity: 0.65;
}

.paps-catalogo-hero h1,
.paps-catalogo-title {
    margin: 0;
    font-size: clamp(24px, 4vw, 50px);
    line-height: 1;
    text-transform: uppercase;
}

.paps-catalogo-body {
    padding: 45px 0 80px;
}

.paps-catalogo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.paps-catalogo-actions-hero {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-bottom: 0;
}

.paps-catalogo-actions-shortcode {
    margin-bottom: 26px;
}

.paps-catalogo-btn,
.paps-flipbook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 11px 22px;
    background: #f2c500;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.paps-catalogo-btn:hover,
.paps-flipbook-btn:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
}

.paps-catalogo-btn-secondary {
    background: #111;
    color: #fff;
}

.paps-catalogo-btn-secondary:hover {
    background: #f2c500;
    color: #111;
}

.paps-flipbook-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.paps-flipbook-btn:disabled:hover {
    background: #f2c500;
    color: #111;
}

/* Wrapper sem caixa, sem fundo e sem borda */
.paps-flipbook-viewer {
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}


/* Navegação limpa, centrada, sem barra preta */
.paps-flipbook-toolbar {
    order: 3;
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    padding: 22px 0 0;
    background: transparent;
    color: #111;
}

.admin-bar .paps-flipbook-toolbar {
    top: auto;
}

.paps-flipbook-toolbar-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.paps-flipbook-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 4px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.paps-flipbook-loading,
.paps-flipbook-error {
    width: 100%;
    padding: 24px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.paps-flipbook-error {
    display: none;
    background: transparent;
    border: 0;
}

/* Área do livro sem container visual */
.paps-flipbook-shell {
    order: 2;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    text-align: center;
    display: flex;
    justify-content: center;
}


.paps-flipbook-shell:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 30px;
    background: #fff;
}

.paps-flipbook-hint {
    display: none !important;
}

.paps-flipbook-book {
    margin: 0 auto;
    width: auto;
    max-width: none;
    touch-action: pan-y;
}

/* Não limitar wrappers internos do StPageFlip.
   As dimensões corretas são controladas pelo JS; max-width aqui podia forçar modo/corte. */
.paps-flipbook-book,
.paps-flipbook-book > div,
.paps-flipbook-book .stf__parent,
.paps-flipbook-book .stf__wrapper,
.paps-flipbook-book .stf__block {
    max-width: none !important;
}

.paps-flipbook-book .stf__parent,
.paps-flipbook-book .stf__wrapper,
.paps-flipbook-book .stf__block {
    overflow: visible !important;
}


.paps-flip-page {
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.paps-flip-page-blank,
.paps-flip-page-blank .paps-flip-page-inner {
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.paps-flip-page-blank::after {
    display: none !important;
}

.paps-flip-page[data-density="hard"] {
    background: #fff;
}

.paps-flip-page-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    line-height: 0;
}

.paps-flip-page-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.paps-flip-page-links {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.paps-flip-page-links a {
    position: absolute;
    display: block;
    pointer-events: auto;
    background: transparent;
    border: 0;
    text-decoration: none;
}

.paps-flip-page-links a:hover {
    outline: 2px solid rgba(242, 197, 0, 0.85);
    outline-offset: -2px;
    background: rgba(242, 197, 0, 0.12);
}

/* Remove o triângulo/canto artificial. A animação real já dá o efeito de página. */
.paps-flip-page::after {
    display: none;
}

.paps-flipbook-fallback-frame {
    display: block;
    width: 100%;
    height: 75vh;
    border: 0;
    margin-top: 15px;
    background: #e9e9e9;
}

.paps-catalogo-empty {
    padding: 30px;
    background: #f5f5f5;
    color: #555;
}


@media (min-width: 701px) and (max-width: 1280px) {
    .paps-catalogo-unico .container {
        width: 94%;
        max-width: 94%;
    }
}

@media (max-width: 700px) {

    .paps-catalogo-unico .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .paps-catalogo-body {
        overflow-x: hidden;
    }

    .paps-flipbook-viewer,
    .paps-flipbook-shell {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .paps-flipbook-book {
        max-width: none !important;
        overflow: visible !important;
    }


    .paps-catalogo-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .paps-catalogo-actions-hero {
        justify-content: flex-start;
        width: 100%;
    }

    .paps-catalogo-body {
        padding: 35px 0 55px;
    }

    .paps-catalogo-actions {
        flex-direction: column;
    }

    .paps-catalogo-btn {
        width: 100%;
    }

    .paps-flipbook-toolbar {
        padding-top: 18px;
    }

    .paps-flipbook-toolbar-group {
        gap: 8px;
    }

    .paps-flipbook-btn {
        min-height: 38px;
        padding: 10px 16px;
        font-size: 11px;
    }

    .paps-flipbook-status {
        min-height: 38px;
        font-size: 11px;
    }
}

@media (max-width: 430px) {
    .paps-catalogo-unico .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .paps-flipbook-book {
        max-width: none !important;
    }


    .paps-flipbook-toolbar-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .paps-flipbook-btn {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}
