.lz-sales-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f7f2e8 url("../images/book-showcase-bg-v1.webp") center/cover no-repeat;
    border-bottom: 1px solid rgba(23, 61, 58, .1);
}

.lz-sales-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(247, 242, 232, .3), rgba(247, 242, 232, .78) 54%, rgba(247, 242, 232, .35));
}

.lz-sales-hero-grid {
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(350px, .82fr) minmax(590px, 1.18fr);
    align-items: center;
    gap: 30px;
    padding-block: 68px 54px;
}

.lz-sales-copy {
    position: relative;
    z-index: 8;
    max-width: 510px;
}

.lz-sales-copy h1 {
    margin: 30px 0 18px;
    padding-top: .12em;
    color: var(--lz-primary);
    font: 700 clamp(50px, 5.4vw, 79px)/1.3 var(--lz-reading-font);
    text-wrap: balance;
    overflow: visible;
}

.lz-sales-copy > p {
    max-width: 490px;
    margin: 0;
    color: #52625f;
    font: 400 20px/1.9 var(--lz-reading-font);
}

.lz-sales-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.lz-sales-actions .lz-button { margin-top: 0; }

.lz-sales-secondary {
    padding-block: 9px;
    color: var(--lz-primary) !important;
    border-bottom: 1px solid var(--lz-accent);
    font-size: 13px;
    font-weight: 700;
}

.lz-sales-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: #4f605d;
    font-size: 12px;
    font-weight: 600;
}

.lz-sales-trust li { white-space: nowrap; }
.lz-sales-trust span { margin-inline-end: 5px; color: var(--lz-accent); }

.lz-showcase-wrap {
    min-width: 0;
    direction: ltr;
}

.lz-books-stage {
    position: relative;
    height: 555px;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.lz-showcase-item {
    --book-width: 172px;
    --book-rotate: 0deg;
    --book-depth: 0px;
    position: absolute;
    top: 80px;
    left: 50%;
    z-index: 2;
    width: var(--book-width);
    text-align: center;
    transform: translateX(-50%) translateZ(var(--book-depth)) rotate(var(--book-rotate));
    transform-origin: 50% 100%;
    transition: transform .42s ease, filter .42s ease, z-index 0s .15s;
}

.lz-showcase-item:nth-child(1) { --float-duration: 5.8s; --float-delay: -1.3s; }
.lz-showcase-item:nth-child(2) { --float-duration: 6.6s; --float-delay: -3.8s; }
.lz-showcase-item:nth-child(3) { --float-duration: 6.1s; --float-delay: -2.1s; }
.lz-showcase-item:nth-child(4) { --float-duration: 7.2s; --float-delay: -4.6s; }
.lz-showcase-item:nth-child(5) { --float-duration: 6.8s; --float-delay: -.7s; }

.lz-showcase-pos-1 { --book-width: 205px; --book-depth: 60px; top: 42px; z-index: 6; }
.lz-showcase-pos-2 { --book-rotate: 7deg; left: 70%; top: 86px; z-index: 5; }
.lz-showcase-pos-3 { --book-rotate: -7deg; left: 30%; top: 86px; z-index: 5; }
.lz-showcase-pos-4 { --book-width: 148px; --book-rotate: 12deg; left: 87%; top: 134px; z-index: 3; }
.lz-showcase-pos-5 { --book-width: 148px; --book-rotate: -12deg; left: 13%; top: 134px; z-index: 3; }

.lz-showcase-link {
    display: block;
    outline-offset: 10px;
}

.lz-3d-book {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    transform-style: preserve-3d;
    transform: rotateY(-13deg);
    filter: drop-shadow(17px 25px 19px rgba(17, 43, 40, .23));
    transition: transform .42s ease, filter .42s ease;
}

@media (min-width: 701px) {
    .lz-3d-book {
        animation: lz-book-float var(--float-duration, 6.4s) ease-in-out var(--float-delay, 0s) infinite alternate;
        will-change: transform;
    }

    .lz-books-stage:hover .lz-3d-book,
    .lz-books-stage:focus-within .lz-3d-book {
        animation-play-state: paused;
    }
}

@keyframes lz-book-float {
    from { transform: rotateY(-13deg) translate3d(4px, 2px, 0); }
    to { transform: rotateY(-11deg) translate3d(-4px, -5px, 0); }
}

.lz-book-front {
    position: absolute;
    z-index: 3;
    inset: 0;
    overflow: hidden;
    background: #eae1d2;
    border-radius: 3px 7px 7px 3px;
    box-shadow: inset 4px 0 6px rgba(255, 255, 255, .16), inset -3px 0 6px rgba(0, 0, 0, .13);
    transform: translateZ(7px);
}

.lz-book-front img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #eee7dc;
}

.lz-showcase-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--lz-primary), #2d625d);
    font: 700 23px/1.5 var(--lz-reading-font);
}

.lz-book-pages {
    position: absolute;
    z-index: 1;
    top: 7px;
    right: -10px;
    bottom: 5px;
    width: 18px;
    border-radius: 0 4px 4px 0;
    background: repeating-linear-gradient(90deg, #e7dfd0 0 1px, #fffaf0 1px 3px);
    transform: rotateY(76deg) translateZ(4px);
    transform-origin: left center;
}

.lz-book-spine-3d {
    position: absolute;
    z-index: 2;
    top: 2px;
    bottom: 2px;
    left: -8px;
    width: 16px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(90deg, rgba(7, 27, 25, .72), rgba(255, 255, 255, .14));
    transform: rotateY(-78deg) translateZ(2px);
    transform-origin: right center;
}

.lz-showcase-details {
    direction: rtl;
    display: grid;
    gap: 3px;
    width: max-content;
    max-width: 230px;
    margin: 18px auto 0;
    padding: 10px 15px;
    color: #fff;
    background: rgba(16, 44, 42, .94);
    border: 1px solid rgba(222, 178, 111, .38);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(13, 38, 36, .18);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.lz-showcase-details strong { font: 700 13px/1.45 var(--lz-heading-font); }
.lz-showcase-details span { color: #d6dfdc; font-size: 11px; }
.lz-showcase-details em { color: #e5ba7b; font-size: 11px; font-style: normal; font-weight: 700; }

.lz-showcase-item:hover,
.lz-showcase-item:focus-within {
    z-index: 20;
    filter: none;
    transform: translateX(-50%) translateY(-24px) translateZ(120px) rotate(0deg);
    transition-delay: 0s;
}

.lz-showcase-item:hover .lz-3d-book,
.lz-showcase-item:focus-within .lz-3d-book {
    animation: none;
    transform: rotateY(-3deg) scale(1.04);
    filter: drop-shadow(20px 30px 23px rgba(17, 43, 40, .3));
}

.lz-showcase-item:hover .lz-showcase-details,
.lz-showcase-item:focus-within .lz-showcase-details {
    opacity: 1;
    transform: translateY(0);
}

.lz-swipe-hint { display: none; }

@media (max-width: 1050px) {
    .lz-sales-hero-grid { grid-template-columns: minmax(310px, .8fr) minmax(500px, 1.2fr); }
    .lz-showcase-pos-2 { left: 68%; }
    .lz-showcase-pos-3 { left: 32%; }
    .lz-showcase-pos-4 { left: 84%; }
    .lz-showcase-pos-5 { left: 16%; }
}

@media (max-width: 860px) {
    .lz-sales-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 34px;
        padding-block: 56px 42px;
    }
    .lz-sales-copy { max-width: 650px; margin-inline: auto; text-align: center; }
    .lz-sales-copy > p { margin-inline: auto; }
    .lz-sales-actions, .lz-sales-trust { justify-content: center; }
    .lz-books-stage { height: 520px; max-width: 680px; margin-inline: auto; }
}

@media (max-width: 700px) {
    .lz-sales-hero { background-position: 50% 100%; }
    .lz-sales-hero-grid { width: 100%; padding-top: 42px; gap: 28px; }
    .lz-sales-copy { width: min(100% - 28px, 560px); }
    .lz-sales-copy h1 {
        margin-top: 25px;
        padding-top: .14em;
        font-size: clamp(43px, 13vw, 58px);
        line-height: 1.32;
    }
    .lz-sales-copy > p { font-size: 18px; line-height: 1.8; }
    .lz-sales-trust { gap: 8px 13px; }
    .lz-showcase-wrap { width: 100%; overflow: hidden; }
    .lz-books-stage {
        height: auto;
        max-width: none;
        display: flex;
        align-items: flex-start;
        gap: 22px;
        padding: 12px max(13vw, 44px) 30px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        animation: lz-mobile-swipe-cue 1.25s cubic-bezier(.22, .78, .25, 1) .7s both;
    }
    .lz-showcase-wrap.is-touched .lz-books-stage { animation: none; }
    .lz-books-stage::-webkit-scrollbar { display: none; }
    .lz-showcase-item,
    .lz-showcase-pos-1,
    .lz-showcase-pos-2,
    .lz-showcase-pos-3,
    .lz-showcase-pos-4,
    .lz-showcase-pos-5 {
        --book-width: min(58vw, 225px);
        position: relative;
        flex: 0 0 var(--book-width);
        top: auto;
        left: auto;
        z-index: auto;
        width: var(--book-width);
        transform: none;
        scroll-snap-align: center;
    }
    .lz-showcase-item:hover,
    .lz-showcase-item:focus-within { transform: translateY(-6px); }
    .lz-3d-book { transform: rotateY(-10deg); }
    .lz-showcase-item:hover .lz-3d-book,
    .lz-showcase-item:focus-within .lz-3d-book { transform: rotateY(-5deg); }
    .lz-showcase-details {
        width: 100%;
        max-width: none;
        min-height: 79px;
        opacity: 1;
        transform: none;
    }
    .lz-swipe-hint {
        direction: rtl;
        display: block;
        margin: -8px 0 0;
        color: #53635f;
        text-align: center;
        font-size: 12px;
    }
    .lz-swipe-hint span { margin-inline-end: 5px; color: var(--lz-accent); }
}

@keyframes lz-mobile-swipe-cue {
    0% { transform: translateX(20px); }
    55% { transform: translateX(-13px); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .lz-showcase-item, .lz-3d-book, .lz-showcase-details, .lz-books-stage {
        animation: none !important;
        transition: none !important;
    }
}
