/* From module/Webwinkel/view/webwinkel/boeken/view.phtml */
.list-unstyled {
    font-size: 15px;
}

/* ==========================================================================
   Shared Styles Extracted from Templates
   ========================================================================== */

/* --- Layout & Utility --- */
.full-width-button {
    width: 100%;
}

.layoutImage {
    width: 40%;
    height: 40%;
    border: 2px solid black;
    margin: 0 0 5px 5px;
}

.book_image {
    max-width: 350px;
    max-height: 350px;
    margin: 10px 0 10px 0;
}

.tox-notifications-container {
    display: none;
}

/* --- Forms --- */
.form-group label.required::after {
    content: " *";
    color: red;
}

/* --- Slideshow --- */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.mySlides {
    margin: 0 auto;
    height: 200px;
    width: 200px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: gray;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 300px) {
    .prev, .next {
        font-size: 11px
    }
}

/* --- ReCaptcha --- */
.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    right: 4px !important;
    bottom: 40px !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}

/* Alignment classes used by Quill output */
.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-justify {
    text-align: justify;
}

/* Quill list indentation levels (optional but often needed) */
.ql-indent-1 {
    padding-left: 3em;
}

.ql-indent-2 {
    padding-left: 6em;
}

.ql-indent-3 {
    padding-left: 9em;
}

.ql-indent-4 {
    padding-left: 12em;
}

.ql-indent-5 {
    padding-left: 15em;
}

.ql-indent-6 {
    padding-left: 18em;
}

.ql-indent-7 {
    padding-left: 21em;
}

.ql-indent-8 {
    padding-left: 24em;
}

/* Basic table styling (works for normal <table> output) */
.quill-content table,
.ql-editor table {
    width: 100%;
    border-collapse: collapse;
}

.quill-content td, .quill-content th,
.ql-editor td, .ql-editor th {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}


/* Card specific styling */
.favorite-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Fix image scaling issues */
.book-card .card-img-wrapper {
    height: 240px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: .5rem;
    border-radius: .375rem;
    overflow: hidden;
}

.book-card .card-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain; /* Prevents the "stretching" seen in your screenshot */
}

.book-card .card-img-top {
    height: 100%;
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 0;
    border-radius: .375rem;
}

.book-card {
    height: 100%;
}

.book-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.book-card-body {
    height: 100%;
}

.book-card-text {
    min-height: 0;
    overflow: visible;
    padding-top: .5rem;
}

.book-card-title {
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 400;
    margin: 0 0 .25rem 0;
}

.book-card-subtitle {
    font-size: .85rem;
    line-height: 1.2;
    margin: 0 0 .5rem 0;
}

.book-card .button-price {
    margin-top: auto;
    padding-top: 15px;
}

/* Line Clamping: Limits titles to 2 lines exactly */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem; /* ensures the gap is the same even for 1-line titles */
    line-height: 1.5rem;
    font-weight: 700;
}

/* Table refinements */
.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}