.catalog-hero {
    padding: 46px 0 24px;
    background: linear-gradient(135deg, rgba(13, 110, 253, .10), rgba(13, 110, 253, .02));
}

.catalog-eyebrow {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(13, 110, 253, .12);
    color: #0d6efd;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.catalog-hero h1,
.catalog-viewer-header h1 {
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    margin: 12px 0 8px;
}

.catalog-hero p,
.catalog-viewer-header p {
    max-width: 760px;
    color: #64748b;
    margin: 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.catalog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.catalog-card:hover {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .12);
}

.catalog-cover {
    height: 250px;
    background: #f8fafc;
    border-bottom: 5px solid var(--catalog-color, #0d6efd);
}

.catalog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.catalog-cover-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 44px;
}

.catalog-card-body {
    padding: 18px;
}

.catalog-logo {
    max-width: 80px;
    max-height: 42px;
    object-fit: contain;
    margin-bottom: 10px;
}

.catalog-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.catalog-card p {
    color: #64748b;
    font-size: .94rem;
}

.catalog-card span {
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    color: var(--catalog-color, #0d6efd);
}

.catalog-empty {
    grid-column: 1 / -1;
    border-radius: 18px;
    border: 1px dashed rgba(100, 116, 139, .35);
    padding: 40px;
    text-align: center;
    color: #64748b;
}

.catalog-list-page .acaps-section-head {
    padding-bottom: 8px;
}

.catalog-product-card {
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.catalog-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 70, 184, .24);
    box-shadow: 0 14px 30px rgba(17, 70, 184, .12);
}

.catalog-product-media {
    height: 260px;
    background: #fff;
}

.catalog-product-media .acaps-prod-hero {
    padding: 8px;
}

.catalog-product-logo {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid #d7e6ff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.catalog-product-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.catalog-product-description {
    min-height: 40px;
    margin: -2px 0 0;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.35;
}

.catalog-open-btn {
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    border-radius: 12px;
    background: var(--catalog-color, #1146b8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.catalog-product-card:hover .catalog-open-btn {
    filter: brightness(.96);
}

.catalog-viewer {
    background: #f8fafc;
    min-height: 100vh;
    padding: 10px 22px 18px;
}

.catalog-viewer-book {
    min-height: calc(100dvh - 64px);
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(0, 41, 189, .20) 0%, rgba(0, 16, 100, .12) 45%, rgba(1, 10, 53, .06) 100%),
        linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

.catalog-viewer-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    max-width: 1540px;
    margin: 0 auto 10px;
}

.catalog-viewer-book .catalog-viewer-header {
    display: none;
}

.catalog-viewer-book .catalog-viewer-header h1,
.catalog-viewer-book .catalog-viewer-header p {
    display: none;
}

.catalog-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--catalog-color, #0d6efd);
    font-weight: 800;
    font-size: .9rem;
}

.catalog-viewer-meta {
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    color: #334155;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.catalog-reader {
    max-width: 1540px;
    margin: 0 auto;
    display: block;
    position: relative;
    min-height: calc(100vh - 135px);
}

.catalog-viewer-book .catalog-reader {
    width: 100%;
    max-width: none;
    height: calc(100dvh - 64px);
    min-height: 540px;
    overflow: hidden;
    perspective: 2200px;
}

.catalog-book-scroll {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.catalog-reader.is-zoomed .catalog-book-scroll {
    overflow: auto;
    cursor: grab;
}

.catalog-reader.is-zoomed .catalog-book-scroll:active {
    cursor: grabbing;
}

.catalog-book-scale {
    --catalog-zoom: 1;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 52px 30px 132px;
    transform: scale(var(--catalog-zoom));
    transform-origin: center center;
    transition: transform .18s ease;
}

.catalog-reader.is-zoomed .catalog-book-scale {
    align-items: flex-start;
    justify-content: flex-start;
    transform-origin: top left;
    width: max-content;
    height: max-content;
    padding: 48px 120px 80px;
}

.catalog-pages {
    --catalog-page-width: 460px;
    --catalog-page-height: 650px;
    --catalog-book-offset: 42px;
    position: relative;
    display: block;
    width: var(--catalog-page-width);
    height: var(--catalog-page-height);
    margin: auto;
    transform-style: preserve-3d;
    transform: translateX(var(--catalog-book-offset));
    transition: transform 1s cubic-bezier(.65, 0, .35, 1);
}

.catalog-pages.opened {
    transform: translateX(calc(50% + var(--catalog-book-offset)));
}

.catalog-book-sheet {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 1.15s cubic-bezier(.645, .045, .355, 1);
    cursor: pointer;
}

.catalog-book-sheet.flipped {
    transform: rotateY(-180deg);
}

.catalog-page-shell {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 0;
    overflow: visible;
    box-shadow: 5px 10px 30px rgba(0, 0, 0, .28);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.catalog-page-front {
    border-radius: 0 7px 7px 0;
}

.catalog-page-back {
    transform: rotateY(180deg);
    border-radius: 7px 0 0 7px;
}

.catalog-page-front::after,
.catalog-page-back::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.catalog-page-front::after {
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.10),
            transparent 8%,
            transparent 92%,
            rgba(0,0,0,.06)
        );
}

.catalog-page-back::after {
    background:
        linear-gradient(
            270deg,
            rgba(0,0,0,.10),
            transparent 8%,
            transparent 92%,
            rgba(0,0,0,.06)
        );
}

.catalog-page-title {
    display: none;
    font-size: .84rem;
    font-weight: 900;
    color: #64748b;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.catalog-page-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: visible;
    background: #fff;
}

.catalog-page-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.catalog-book-spine {
    position: absolute;
    z-index: 50;
    top: 0;
    left: -8px;
    width: 16px;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 0, 0, .28),
            rgba(255, 255, 255, .08),
            rgba(0, 0, 0, .18),
            transparent
        );
    transition: opacity .4s;
}

.catalog-reader.is-opened .catalog-book-spine {
    opacity: 1;
}

.catalog-reader.is-turning .catalog-page-shell,
.catalog-reader.is-turning .catalog-hotspot-node {
    pointer-events: none;
}

.catalog-book-nav {
    position: fixed;
    top: 52%;
    transform: translateY(-50%);
    z-index: 60;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 2px solid rgba(0, 41, 189, .22);
    background: rgba(255, 255, 255, .96);
    color: var(--catalog-color, #0029bd);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 12px 26px rgba(0, 41, 189, .14);
    transition: .16s ease;
}

.catalog-book-nav:hover:not(:disabled) {
    border-color: var(--catalog-color, #0d6efd);
    color: var(--catalog-color, #0d6efd);
    transform: translateY(-50%) scale(1.04);
}

.catalog-book-nav:disabled {
    opacity: .28;
    cursor: not-allowed;
}

.catalog-book-prev {
    left: 12px;
}

.catalog-book-next {
    right: 12px;
}

.catalog-zoom-controls {
    display: none;
}

.catalog-zoom-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 22px;
    font-weight: 900;
}

.catalog-zoom-controls span {
    font-size: 11px;
    font-weight: 900;
    color: #64748b;
}

.catalog-zoom-reset {
    display: none;
    background: var(--catalog-color, #0d6efd) !important;
    color: #fff !important;
}

.catalog-zoom-reset.is-visible {
    display: inline-flex;
}

.catalog-book-footer {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 55;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .20);
}

.catalog-hotspot-node {
    position: absolute;
    z-index: 6;
}

.catalog-hotspot-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    background: var(--catalog-color, #0d6efd);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .25);
    transition: .16s ease;
    z-index: 3;
}

.catalog-hotspot-button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 38px);
    height: max(100%, 38px);
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(13, 110, 253, 0);
    transition: .16s ease;
    z-index: -1;
}

.catalog-hotspot-button:hover,
.catalog-hotspot-button:focus,
.catalog-hotspot-button:active {
    border-color: rgba(255,255,255,.96);
    outline: none;
    transform: translate(-50%, -50%) scale(1.08);
}

.catalog-hotspot-button:hover::after,
.catalog-hotspot-button:focus::after,
.catalog-hotspot-button:active::after {
    background: color-mix(in srgb, var(--catalog-color, #0d6efd) 18%, transparent);
}

.catalog-hotspot-card {
    position: absolute;
    left: 50%;
    top: calc(100% + 20px);
    width: min(310px, calc(100vw - 32px));
    transform: translateX(-50%) translateY(6px);
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .16s ease;
    z-index: 20;
}

.catalog-hotspot-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 16px;
    height: 16px;
    transform: translateX(-50%) rotate(45deg);
    background: #fff;
    border-left: 1px solid rgba(15, 23, 42, .10);
    border-top: 1px solid rgba(15, 23, 42, .10);
}

.catalog-hotspot-node.is-open {
    z-index: 40;
}

.catalog-hotspot-node.is-open .catalog-hotspot-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.catalog-hotspot-card-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(100, 116, 139, .14);
    color: #334155;
    font-weight: 900;
    line-height: 1;
}

.catalog-hotspot-card h3 {
    margin: 0 24px 2px 0;
    font-size: 13px;
    line-height: 1.18;
    font-weight: 900;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-hotspot-card > small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 9px;
}

.catalog-map-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.catalog-map-prices div {
    border-radius: 12px;
    background: #f8fafc;
    padding: 8px;
    min-width: 0;
}

.catalog-map-prices span {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.catalog-map-prices strong {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.15;
    color: #0f172a;
}

.catalog-login-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.catalog-map-stock {
    border-radius: 12px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 9px;
}

.catalog-map-stock.in-stock {
    color: #15803d;
    background: rgba(34, 197, 94, .12);
}

.catalog-map-stock.backorder {
    color: #b45309;
    background: rgba(245, 158, 11, .14);
}

.catalog-map-cart-form label {
    display: block;
    margin-bottom: 8px;
}

.catalog-map-cart-form label span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
    margin-bottom: 4px;
}

.catalog-map-cart-form label b {
    color: #dc2626;
}

.catalog-map-cart-form select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(100, 116, 139, .28);
    padding: 7px 9px;
    font-size: 12px;
}

.catalog-map-cart-row {
    display: grid;
    grid-template-columns: 30px 42px 30px minmax(70px, 1fr);
    gap: 6px;
    align-items: center;
}

.catalog-map-cart-row input {
    width: 42px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(100, 116, 139, .28);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.catalog-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 0;
    background: rgba(100, 116, 139, .14);
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.catalog-map-add {
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: var(--catalog-color, #0d6efd);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-map-add.wide {
    width: 100%;
    margin-top: 6px;
}

.catalog-map-view {
    display: inline-flex;
    margin-top: 8px;
    color: var(--catalog-color, #0d6efd);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.catalog-map-msg {
    display: none;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.catalog-map-msg.is-success {
    color: #15803d;
}

.catalog-map-msg.is-error {
    color: #dc2626;
}

@media (max-width: 991.98px) {
    .catalog-viewer {
        padding: 8px;
    }

    .catalog-viewer-book {
        padding: 0;
        min-height: calc(100dvh - 64px);
    }

    .catalog-viewer-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 8px;
    }

    .catalog-viewer-book .catalog-viewer-header {
        left: 10px;
        right: auto;
        top: 74px;
        max-width: calc(100vw - 88px);
        padding: 6px 8px;
        border-radius: 13px;
    }

    .catalog-viewer-book .catalog-back {
        font-size: 12px;
    }

    .catalog-viewer-book .catalog-viewer-meta {
        display: none;
    }

    .catalog-reader {
        min-height: calc(100vh - 150px);
    }

    .catalog-viewer-book .catalog-reader {
        min-height: calc(100dvh - 64px);
        height: calc(100dvh - 64px);
    }

    .catalog-book-scale {
        padding: 10px 8px 62px;
        align-items: flex-start;
        justify-content: center;
    }

    .catalog-reader.is-zoomed .catalog-book-scale {
        padding: 48px 60px 92px 18px;
    }

    .catalog-pages {
        --catalog-book-offset: 0px;
        max-height: none;
    }

    .catalog-page-image {
        width: 100%;
        max-width: none;
        max-height: none;
    }

    .catalog-book-nav {
        width: 42px;
        height: 42px;
        font-size: 18px;
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .catalog-book-prev {
        left: 8px;
    }

    .catalog-book-next {
        right: 8px;
    }

    .catalog-book-nav:hover:not(:disabled) {
        transform: scale(1.04);
    }

    .catalog-zoom-controls {
        right: 12px;
        top: 76px;
        padding: 6px;
        gap: 5px;
    }

    .catalog-zoom-controls button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .catalog-hotspot-button {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .catalog-hotspot-card {
        width: min(292px, calc(100vw - 24px));
    }
}
