.products-catalog-book-entry {
    position: relative;
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 85, 96, 0.52);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(125deg, #8e101b 0%, #e31f2b 52%, #5c0910 100%);
    box-shadow: 0 18px 44px rgba(159, 12, 25, 0.3);
}

.products-catalog-book-art {
    width: 68px;
    height: 58px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(5, 7, 9, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.products-catalog-book-art svg {
    width: 56px;
    height: 46px;
    fill: rgba(255, 255, 255, 0.15);
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.products-catalog-book-copy {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

.products-catalog-book-copy small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.products-catalog-book-copy strong {
    font-size: clamp(1.05rem, 2vw, 1.38rem);
    line-height: 1.2;
}

.products-catalog-book-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-left: auto;
    padding: 0.65rem 1rem;
    color: #111;
    border: 0;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    font-size: 0.86rem;
    font-weight: 850;
}

.products-catalog-book-button:hover,
.products-catalog-book-button:focus-visible {
    color: #fff;
    outline: 0;
    background: #16191c;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(0, 0, 0, 0.3);
}

.catalog-book-download-notice {
    position: fixed;
    z-index: 2070;
    right: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    width: min(390px, calc(100vw - 1.5rem));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.8rem;
    padding: 0.9rem;
    color: #f5f6f7;
    border: 1px solid rgba(255, 92, 102, 0.42);
    border-radius: 14px;
    background: rgba(18, 20, 23, 0.97);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

.catalog-book-download-notice[hidden] {
    display: none;
}

.catalog-book-download-notice-mark {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 10px;
    background: #b00e19;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.catalog-book-download-notice[data-state="generating"] .catalog-book-download-notice-mark {
    animation: catalog-download-notice-pulse 1.4s ease-in-out infinite;
}

.catalog-book-download-notice[data-state="ready"] .catalog-book-download-notice-mark {
    background: #247a4a;
}

.catalog-book-download-notice-copy {
    min-width: 0;
    display: grid;
    gap: 0.22rem;
}

.catalog-book-download-notice-copy strong {
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.25;
}

.catalog-book-download-notice-copy > span {
    color: #b7bec5;
    font-size: 0.78rem;
    line-height: 1.45;
}

.catalog-book-download-notice-close {
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    color: #fff;
    border: 1px solid #4a5057;
    border-radius: 8px;
    background: #25292e;
    font-size: 0.72rem;
    font-weight: 800;
}

.catalog-book-download-notice-close:hover,
.catalog-book-download-notice-close:focus-visible {
    border-color: #ee4035;
    outline: 0;
    background: #353a40;
    box-shadow: 0 0 0 3px rgba(238, 64, 53, 0.16);
}

@keyframes catalog-download-notice-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.72; transform: scale(0.94); }
}

.catalog-book-chooser {
    --bs-modal-width: 650px;
    color: #f5f6f7;
}

.catalog-book-chooser .modal-content {
    border: 1px solid #353a40;
    border-radius: 20px;
    background: linear-gradient(160deg, #1c2024, #0e1012);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
}

.catalog-book-chooser .modal-header,
.catalog-book-chooser .modal-footer {
    padding: 1.2rem 1.35rem;
    border-color: #33383e;
}

.catalog-book-chooser .modal-header p {
    margin: 0 0 0.25rem;
    color: #ff5964;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.catalog-book-chooser .modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
}

.catalog-book-chooser-copy {
    color: #adb4bc;
}

.catalog-book-mode-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0;
    border: 0;
}

.catalog-book-mode-option {
    cursor: pointer;
}

.catalog-book-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.catalog-book-mode-option span {
    min-height: 112px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.65rem;
    padding: 0.8rem;
    color: #c9cfd5;
    border: 1px solid #3b4148;
    border-radius: 13px;
    background: #15181b;
    text-align: center;
}

.catalog-book-mode-option .bi {
    color: #ff5964;
    font-size: 1.55rem;
}

.catalog-book-mode-option input:checked + span,
.catalog-book-mode-option input:focus-visible + span {
    color: #fff;
    border-color: #e31f2b;
    background: rgba(227, 31, 43, 0.18);
    box-shadow: 0 0 0 3px rgba(227, 31, 43, 0.16);
}

body.catalog-book-open {
    overflow: hidden !important;
}

.catalog-book-viewer[hidden] {
    display: none !important;
}

.catalog-book-viewer {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    color: #f4f6f8;
    background:
        radial-gradient(circle at 50% 12%, rgba(227, 31, 43, 0.16), transparent 28rem),
        #08090a;
}

.catalog-book-viewer-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #2d3238;
    background: rgba(15, 17, 19, 0.96);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.catalog-book-viewer-title,
.catalog-book-viewer-actions,
.catalog-book-controls,
.catalog-book-controls form {
    display: flex;
    align-items: center;
}

.catalog-book-viewer-title {
    min-width: 0;
    gap: 0.75rem;
}

.catalog-book-mini-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 11px;
    background: linear-gradient(140deg, #ff404c, #8c0b15);
    box-shadow: 0 8px 22px rgba(227, 31, 43, 0.32);
}

.catalog-book-viewer-title small {
    display: block;
    color: #ff6670;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-book-viewer-title h2 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.3rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-book-viewer-actions {
    position: relative;
    gap: 0.45rem;
}

.catalog-book-viewer-actions button,
.catalog-book-viewer-actions a,
.catalog-book-viewer-actions select,
.catalog-book-controls button,
.catalog-book-controls input {
    min-height: 44px;
    color: #f4f6f8;
    border: 1px solid #3c4249;
    border-radius: 9px;
    background: #191c20;
}

.catalog-book-viewer-actions button,
.catalog-book-viewer-actions a,
.catalog-book-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 750;
}

.catalog-book-viewer-actions select {
    padding: 0.45rem 2.2rem 0.45rem 0.65rem;
}

.catalog-book-viewer-actions button:hover,
.catalog-book-viewer-actions a:hover,
.catalog-book-viewer-actions :focus-visible,
.catalog-book-controls button:hover,
.catalog-book-controls :focus-visible {
    color: #fff;
    border-color: #e31f2b;
    outline: 0;
    background-color: #a7111c;
}

.catalog-book-stage {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1rem;
}

.catalog-book-spread {
    position: relative;
    width: min(1180px, calc(100vw - 2rem));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    perspective: 1800px;
    transform-style: preserve-3d;
}

.catalog-book-spread::before {
    position: absolute;
    z-index: 1;
    top: 1.5%;
    bottom: 1.5%;
    left: 50%;
    width: 10px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.24), transparent);
    pointer-events: none;
    transform: translateX(-50%);
}

.catalog-book-turn-layer {
    position: absolute;
    z-index: 6;
    transform-style: preserve-3d;
    will-change: transform;
}

.catalog-book-turn-layer--forward {
    animation: catalog-page-forward 580ms cubic-bezier(0.22, 0.68, 0.18, 1) both;
    transform-origin: left center;
}

.catalog-book-turn-layer--backward {
    animation: catalog-page-backward 580ms cubic-bezier(0.22, 0.68, 0.18, 1) both;
    transform-origin: right center;
}

.catalog-book-turn-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.catalog-book-turn-face--back {
    transform: rotateY(180deg);
}

.catalog-book-turn-face > .catalog-book-page {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 4px !important;
    box-shadow: none;
}

.catalog-book-turn-layer--forward::after,
.catalog-book-turn-layer--backward::after {
    position: absolute;
    z-index: 8;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 30%, rgba(255, 255, 255, 0.08));
    opacity: 0;
    backface-visibility: hidden;
    pointer-events: none;
    animation: catalog-page-shadow 580ms ease-in-out both;
}

.catalog-book-page {
    position: relative;
    width: min(48%, 535px);
    max-height: 100%;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    color: #17191b;
    border: 1px solid #d9dde0;
    background: #f6f4ef;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.catalog-book-page:first-child {
    border-radius: 10px 2px 2px 10px;
}

.catalog-book-page:last-child {
    border-radius: 2px 10px 10px 2px;
}

.catalog-book-page--cover {
    display: grid;
    place-items: center;
    padding: 2rem;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(227, 31, 43, 0.94), rgba(91, 7, 14, 0.97)),
        #b20f1b;
    text-align: center;
}

.catalog-book-cover-mark {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 2.5rem;
}

.catalog-book-page--cover h3 {
    margin: 0 0 0.6rem;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.catalog-book-page--cover p {
    color: rgba(255, 255, 255, 0.82);
}

.catalog-book-page--contents,
.catalog-book-page--products {
    padding: clamp(0.8rem, 1.5vw, 1.3rem);
}

.catalog-book-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #e31f2b;
}

.catalog-book-page-heading h3 {
    margin: 0;
    color: #181a1d !important;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.catalog-book-page-heading > span {
    color: #626a72;
    font-size: clamp(0.56rem, 0.85vw, 0.72rem);
    font-weight: 750;
    text-align: right;
}

.catalog-book-contents-page-list {
    display: grid;
    gap: 0.25rem;
}

.catalog-book-empty {
    margin: 1rem 0;
    color: #697178 !important;
    text-align: center;
}

.catalog-book-contents-page-row {
    width: 100%;
    min-height: 27px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.25rem;
    color: #24272a;
    border: 0;
    border-radius: 5px;
    background: transparent;
    font-size: clamp(0.62rem, 1vw, 0.78rem);
    text-align: left;
}

.catalog-book-contents-page-row::after {
    height: 1px;
    flex: 1;
    order: 2;
    content: "";
    border-top: 1px dotted #9ba1a7;
}

.catalog-book-contents-page-row span:last-child {
    order: 3;
    color: #626a72;
    white-space: nowrap;
}

.catalog-book-contents-page-row > span:first-child {
    color: #24272a;
}

.catalog-book-contents-page-row--letter {
    color: #b00e19;
    font-size: 0.9rem;
    font-weight: 900;
}

.catalog-book-contents-page-row--letter > span:first-child {
    color: #b00e19;
}

.catalog-book-contents-page-row--product {
    padding-left: 1rem;
}

.catalog-book-product-grid {
    height: calc(100% - 2.7rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.34rem;
}

.catalog-book-product {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(0, 49%) minmax(0, 51%);
    overflow: hidden;
    border: 1px solid #d5d8db;
    border-radius: 6px;
    background: #fff;
}

.catalog-book-product-media {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0.58rem;
    color: #596168;
    border: 0;
    border-radius: 0;
    background: #edf0f2;
    cursor: pointer;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.catalog-book-product-media:hover {
    color: #b00e19;
    background: #e3e7ea;
}

.catalog-book-product-media:focus-visible {
    color: #b00e19;
    outline: 2px solid #c71521;
    outline-offset: -3px;
    background: #e3e7ea;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.catalog-book-product-media img {
    width: 75%;
    height: 78%;
    max-width: 75%;
    max-height: 78%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.catalog-book-product-placeholder {
    color: #7a838d;
    font-size: 1.6rem;
}

body.catalog-book-open .products-modal {
    z-index: 2055;
}

body.catalog-book-open .modal-backdrop.show {
    z-index: 2050;
}

.catalog-book-product-copy {
    min-height: 0;
    overflow: hidden;
    padding: 0.3rem 0.34rem;
}

.catalog-book-product-brand {
    margin: 0 0 0.18rem;
    overflow: hidden;
    color: #b00e19 !important;
    font-size: clamp(0.44rem, 0.62vw, 0.56rem);
    font-weight: 850;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.catalog-book-product h4 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 0.18rem;
    color: #17191c !important;
    font-size: clamp(0.58rem, 0.76vw, 0.72rem);
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-book-product-meta,
.catalog-book-product-description,
.catalog-book-product-spec {
    overflow: hidden;
    margin: 0 0 0.2rem;
    color: #535b62 !important;
    font-size: clamp(0.41rem, 0.56vw, 0.52rem);
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-book-product-description {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.catalog-book-page--contents,
.catalog-book-page--products {
    color: #17191b;
    color-scheme: light;
}

.catalog-book-page-number {
    position: absolute;
    right: 0.75rem;
    bottom: 0.45rem;
    color: #777e85;
    font-size: 0.62rem;
    font-weight: 750;
}

.catalog-book-loading,
.catalog-book-error {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #e8ebee;
    background: rgba(8, 9, 10, 0.88);
    text-align: center;
}

.catalog-book-loading[hidden],
.catalog-book-error[hidden] {
    display: none !important;
}

.catalog-book-x-loader {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #e31f2b;
}

.catalog-book-x-loader svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    filter: drop-shadow(0 0 8px rgba(227, 31, 43, 0.38));
    animation: catalog-x-spin 1.15s cubic-bezier(0.55, 0.12, 0.35, 0.88) infinite;
}

.catalog-book-x-loader--stage {
    width: 48px;
    height: 48px;
}

.catalog-book-x-loader--button,
.catalog-book-download-progress {
    display: none;
}

.catalog-book-download-status {
    display: none;
}

.catalog-book-download-status.is-error {
    position: absolute;
    z-index: 3;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(300px, 80vw);
    display: block;
    padding: 0.45rem 0.6rem;
    color: #fff;
    border: 1px solid rgba(255, 89, 100, 0.6);
    border-radius: 7px;
    background: #7d0b14;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    font-size: 0.74rem;
}

.catalog-book-x-loader--button {
    width: 20px;
    height: 20px;
    color: currentColor;
}

[data-catalog-book-download].is-generating {
    cursor: wait;
    opacity: 0.82;
}

[data-catalog-book-download].is-generating > .bi,
[data-catalog-book-download].is-generating > .catalog-book-download-label {
    display: none;
}

[data-catalog-book-download].is-generating > .catalog-book-x-loader--button {
    display: inline-grid !important;
}

[data-catalog-book-download].is-generating > .catalog-book-download-progress {
    display: inline;
}

.catalog-book-controls {
    min-height: 68px;
    justify-content: center;
    gap: 1rem;
    padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
    border-top: 1px solid #2d3238;
    background: #0f1113;
}

.catalog-book-controls form {
    gap: 0.45rem;
}

.catalog-book-controls input {
    width: 62px;
    padding: 0.4rem;
    text-align: center;
}

.catalog-book-controls button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.catalog-book-contents {
    position: fixed;
    z-index: 2010;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(440px, 92vw);
    overflow-y: auto;
    color: #f2f4f6;
    border-right: 1px solid #343a40;
    background: #111417;
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 220ms ease, visibility 220ms ease;
}

.catalog-book-contents.is-open {
    visibility: visible;
    transform: translateX(0);
}

.catalog-book-contents-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #343a40;
    background: rgba(17, 20, 23, 0.97);
}

.catalog-book-contents-header h3 {
    margin: 0;
    color: #fff;
}

.catalog-book-contents-header button {
    width: 44px;
    height: 44px;
    color: #fff;
    border: 1px solid #444b52;
    border-radius: 9px;
    background: #1a1e22;
}

.catalog-book-contents-list {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.catalog-book-contents-group {
    border: 1px solid #30363c;
    border-radius: 10px;
    background: #191d21;
}

.catalog-book-contents-jump,
.catalog-book-contents-product {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.72rem;
    color: #eef1f3;
    border: 0;
    background: transparent;
    text-align: left;
}

.catalog-book-contents-jump:hover,
.catalog-book-contents-jump:focus-visible,
.catalog-book-contents-product:hover,
.catalog-book-contents-product:focus-visible {
    outline: 0;
    background: rgba(227, 31, 43, 0.18);
}

.catalog-book-contents-jump small,
.catalog-book-contents-product small {
    color: #9fa7af;
    white-space: nowrap;
}

.catalog-book-contents-products {
    display: grid;
    border-top: 1px solid #30363c;
}

.catalog-book-contents-product {
    padding-left: 1.25rem;
    font-size: 0.8rem;
}

.catalog-book-contents-backdrop {
    position: fixed;
    z-index: 2009;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.64);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.catalog-book-contents.is-open + .catalog-book-contents-backdrop {
    opacity: 1;
    visibility: visible;
}

.public-catalog-cta {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    background: #090b0d;
}

.public-catalog-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    color: #fff;
    border: 1px solid rgba(227, 31, 43, 0.45);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 20%, rgba(227, 31, 43, 0.22), transparent 19rem),
        linear-gradient(140deg, #171a1e, #0e1012);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.public-catalog-cta-card h2 {
    margin: 0.3rem 0 0.55rem;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.public-catalog-cta-card p {
    max-width: 680px;
    margin: 0;
    color: #aeb5bc;
}

.public-catalog-cta-eyebrow {
    color: #ff5964;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-catalog-cta-actions {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    gap: 0.65rem;
}

.public-catalog-cta-actions a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.public-catalog-cta-open {
    color: #fff;
    background: #e31f2b;
}

.public-catalog-cta-download {
    color: #fff;
    border: 1px solid #4b5259;
    background: #1c2024;
}

@keyframes catalog-page-forward {
    0% { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26); transform: rotateY(0deg); }
    45% { box-shadow: -24px 18px 42px rgba(0, 0, 0, 0.42); }
    100% { box-shadow: -5px 12px 24px rgba(0, 0, 0, 0.18); transform: rotateY(-180deg); }
}

@keyframes catalog-page-backward {
    0% { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26); transform: rotateY(0deg); }
    45% { box-shadow: 24px 18px 42px rgba(0, 0, 0, 0.42); }
    100% { box-shadow: 5px 12px 24px rgba(0, 0, 0, 0.18); transform: rotateY(180deg); }
}

@keyframes catalog-page-shadow {
    0%, 100% { opacity: 0; }
    48% { opacity: 0.72; }
}

@keyframes catalog-x-spin {
    0% { opacity: 0.72; transform: rotate(0deg) scale(0.92); }
    50% { opacity: 1; transform: rotate(180deg) scale(1.06); }
    100% { opacity: 0.72; transform: rotate(360deg) scale(0.92); }
}

@media (max-width: 991.98px) {
    .catalog-book-download-notice {
        bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .products-catalog-book-entry {
        position: fixed;
        z-index: 1038;
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 14px;
        background: transparent;
        box-shadow: none;
    }

    .products-catalog-book-art,
    .products-catalog-book-copy {
        display: none;
    }

    .products-catalog-book-button {
        min-height: 48px;
        margin: 0;
        color: #fff;
        background: linear-gradient(135deg, #f02c38, #a40d18);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
    }

    .catalog-book-viewer-header {
        min-height: 64px;
    }

    .catalog-book-viewer-title h2,
    .catalog-book-viewer-actions > button span,
    .catalog-book-viewer-actions > a span {
        display: none;
    }

    .catalog-book-viewer-actions select {
        max-width: 138px;
    }

    .catalog-book-stage {
        padding: 0.55rem;
    }

    .catalog-book-spread {
        width: 100%;
    }

    .catalog-book-spread::before {
        display: none;
    }

    .catalog-book-turn-layer--forward {
        animation-name: catalog-page-forward-mobile;
        animation-duration: 500ms;
        transform-origin: left center;
    }

    .catalog-book-turn-layer--backward {
        animation-name: catalog-page-backward-mobile;
        animation-duration: 500ms;
        transform-origin: right center;
    }

    .catalog-book-page {
        width: min(100%, 515px);
        border-radius: 9px !important;
    }

    .catalog-book-page:nth-child(2) {
        display: none;
    }

    .public-catalog-cta-card {
        align-items: stretch;
        flex-direction: column;
    }

    .public-catalog-cta-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .catalog-book-viewer-title small,
    .catalog-book-mini-mark,
    .catalog-book-viewer-actions select {
        display: none;
    }

    .catalog-book-viewer-header {
        gap: 0.4rem;
        padding: 0.45rem 0.55rem;
    }

    .catalog-book-viewer-actions {
        margin-left: auto;
    }

    .catalog-book-viewer-actions button,
    .catalog-book-viewer-actions a {
        width: 42px;
        min-height: 42px;
        padding: 0;
    }

    .catalog-book-controls {
        min-height: 62px;
        justify-content: space-between;
        gap: 0.35rem;
        padding-inline: 0.45rem;
    }

    .catalog-book-controls > button span,
    .catalog-book-controls form > span {
        display: none;
    }

    .catalog-book-controls form {
        gap: 0.25rem;
    }

    .catalog-book-controls input {
        width: 54px;
    }

    .catalog-book-page--contents,
    .catalog-book-page--products {
        padding: 0.48rem;
    }

    .catalog-book-page-heading {
        margin-bottom: 0.38rem;
        padding-bottom: 0.3rem;
    }

    .catalog-book-page-heading h3 {
        font-size: 0.82rem;
    }

    .catalog-book-product-grid {
        height: calc(100% - 1.8rem);
        gap: 0.2rem;
    }

    .catalog-book-product {
        grid-template-rows: minmax(0, 55%) minmax(0, 45%);
        border-radius: 4px;
    }

    .catalog-book-product-media {
        padding: 0.24rem;
    }

    .catalog-book-product-copy {
        padding: 0.2rem;
    }

    .catalog-book-product-brand {
        font-size: 0.4rem;
    }

    .catalog-book-product h4 {
        font-size: 0.52rem;
    }

    .catalog-book-product-meta {
        font-size: 0.39rem;
    }

    .catalog-book-product-description,
    .catalog-book-product-spec {
        display: none;
    }

    .catalog-book-mode-options {
        grid-template-columns: 1fr;
    }

    .catalog-book-mode-option span {
        min-height: 70px;
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
    }

    .public-catalog-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@keyframes catalog-page-forward-mobile {
    0% { opacity: 1; transform: rotateY(0deg); }
    62% { opacity: 0.82; }
    100% { opacity: 0.18; transform: rotateY(-112deg); }
}

@keyframes catalog-page-backward-mobile {
    0% { opacity: 1; transform: rotateY(0deg); }
    62% { opacity: 0.82; }
    100% { opacity: 0.18; transform: rotateY(112deg); }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-book-turn-layer,
    .catalog-book-turn-layer::after,
    .catalog-book-x-loader svg,
    .catalog-book-download-notice-mark {
        animation: none !important;
    }

    .catalog-book-x-loader svg {
        opacity: 1;
        transform: none;
    }

    .catalog-book-contents,
    .catalog-book-contents-backdrop {
        transition: none;
    }
}
