/* PDF flipbook viewer — trang báo giá */
.pdf-viewer-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
    border: 1px solid rgba(0, 0, 0, .06);
}

.pdf-viewer-frame::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--color-main, #2557ae) 0%, rgba(0, 0, 0, 0) 100%);
}

.pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    border-bottom: 1px solid #ececec;
}

.pdf-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e3e3e3;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}

.pdf-btn:hover {
    background: var(--color-main, #2557ae);
    border-color: var(--color-main, #2557ae);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.pdf-btn-download {
    background: var(--color-main, #2557ae);
    border-color: var(--color-main, #2557ae);
    color: #fff;
}

.pdf-btn-download:hover {
    filter: brightness(1.1);
    color: #fff;
}

.pdf-page-indicator,
.pdf-zoom-level {
    min-width: 64px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    background: #f1f2f5;
    border-radius: 999px;
    padding: 6px 14px;
    user-select: none;
}

.pdf-book-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 48px 20px;
    overflow: auto;
    background: radial-gradient(ellipse at center, #2b2f3a 0%, #14161c 100%);
}

.pdf-book {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .5));
    transition: transform .25s ease;
    transform-origin: center center;
    opacity: 0;
}

.pdf-book.is-ready {
    opacity: 1;
}

.pdf-hint {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    padding: 4px 0 14px;
    background: #14161c;
    margin: 0;
}

.pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #cfd3dc;
    z-index: 2;
}

.pdf-loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: var(--color-main, #2557ae);
    animation: pdf-spin .8s linear infinite;
}

.pdf-loading-text {
    font-size: 14px;
}

@keyframes pdf-spin {
    to {
        transform: rotate(360deg);
    }
}

.pdf-viewer-frame:fullscreen {
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.pdf-viewer-frame:fullscreen .pdf-book-stage {
    flex: 1;
    min-height: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .pdf-book-stage {
        min-height: 440px;
        padding: 34px 16px;
    }

    .pdf-toolbar {
        padding: 10px 16px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .pdf-viewer-frame {
        border-radius: 14px;
    }

    .pdf-toolbar {
        justify-content: center;
    }

    .pdf-toolbar-group {
        gap: 6px;
    }

    .pdf-btn {
        width: 34px;
        height: 34px;
    }

    .pdf-page-indicator,
    .pdf-zoom-level {
        min-width: 54px;
        font-size: 13px;
        padding: 5px 10px;
    }

    .pdf-book-stage {
        min-height: 340px;
        padding: 22px 10px;
    }

    .pdf-hint {
        font-size: 12px;
    }
}
