.books-component {
    perspective: 1200px;
    width: 500px;
    margin: 0 auto;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    cursor: grab;
    touch-action: pan-y;

}

.carousel-image {
    position: absolute;
    will-change: transform, opacity;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 240px;
    /* taller for card look */
    transform-style: preserve-3d;
    margin: -120px 0 0 -90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: box-shadow 0.3s;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caruosel-dots {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;

    .dot-book {
        position: relative;
        height: 63px;
        width: 58px;
        border: 1px solid #9D9696;
        margin: 0 10px;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;

        img {
            width: 100%;
            height: auto;
            object-fit: cover;
        }

        .icon-search {
            opacity: 0;
            visibility: hidden;
            width: 30px;
            height: 30px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #9d969693;
            border-radius: 50%;
            transition: all 0.3s ease;
            padding: 3px;
        }

        &:hover {
            .icon-search {
                opacity: 1;
                visibility: visible;
            }
        }
    }

    .active {
        position: relative;
        height: 75px;
        width: 62px;
        margin: 0 20px;

        .icon-search {
            opacity: 1;
            visibility: visible;
        }
    }
}

.caruosel-description {
    position: relative;
    background: #1B1717;
    width: 35%;
    height: 25px;
    text-align: center;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);

    .caruosel-link {
        opacity: 0;
        visibility: hidden;
        display: none;
        text-decoration: none;
    }

    .active {
        opacity: 1;
        visibility: visible;
        display: block;
    }

    &::before {
        content: '';
        position: absolute;
        top: -13px;
        left: 50%;
        width: 0px;
        height: 0px;
        border-style: solid;
        border-width: 0 10px 15px 10px;
        border-color: transparent transparent #1B1717 transparent;
        transform: rotate(0deg);
    }

    .caruosel-title {
        color: #fff;
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 10px;
        padding: 0;
        margin: 0;
        text-align: center;

        svg {
            position: relative;
            top: 3px;
            width: 16px;
            height: 16px;
            margin-right: 3px;
            color: #fff;
        }
    }

    .caruosel-text {
        color: #fff;
        font-size: 16px;
        line-height: 20px;
        margin: 0;
        text-align: center;
    }
}