.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    padding: 10px;
}

.book-img {
    width: 140px;
    height: auto;
    border-radius: 4px 10px 10px 4px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

.carousel-btn:hover {
    background: #f8f9fa;
}

.carousel-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dots span.active {
    background: #000;
}

/* Altezza uniforme */
.book-card-premium {
    min-height: 320px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover elegante */
.book-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.15) !important;
}

/* Sezione testo flessibile */
.book-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Bottone sempre in basso */
.book-details a {
    margin-top: auto;
}

/* Immagine uniforme */
.book-cover-wrapper img {
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px 10px 10px 4px;
}

/* Frecce più visibili */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
    border-radius: 50%;
    padding: 20px;
}