/* ============================================================
   BOOKREAD PAGE – Reference Image Match
   ============================================================ */

/* ---------- PAGE BODY ---------- */
.bookread-page {
    background: #fff;
    min-height: 100vh;
    padding: 10pc 20px 80px;
}

.bookread-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* ---------- LEFT: BOOK COVER PANEL ---------- */
.book-cover-panel {
    flex-shrink: 0;
    width: 550px;
    /* background: #f4f4f4; */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0px;
    min-height: 520px;
}

.book-cover-panel img {
    width: 100%;
    /* max-width: 280px; */
    height: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.book-expand-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 38px;
    height: 38px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    color: #333;
    font-size: 16px;
    transition: box-shadow 0.2s;
}

.book-expand-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

/* ---------- RIGHT: BOOK DETAILS ---------- */
.book-info-col {
    flex: 1;
    min-width: 0;
    padding-top: 10px;
}

/* Breadcrumb */
.book-breadcrumb {
    font-family: "NeueHaas", sans-serif;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.book-breadcrumb a {
    color: #999;
    text-decoration: none;
}

.book-breadcrumb a:hover {
    color: #555;
}

.book-breadcrumb span {
    margin: 0 6px;
}

/* Title */
.bookinfo-title {
    font-family: "NeueHaas", sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #111;
    margin: 0 0 16px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description */
.bookinfo-desc {
    font-family: "NeueHaas", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 28px;
}

/* Price */
.bookinfo-price {
    font-family: "NeueHaas", sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #111;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

/* ---------- FORMAT PICKER ---------- */
.format-picker-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.format-picker-label {
    font-family: "NeueHaas", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.format-thumbs {
    display: flex;
    gap: 8px;
}

.format-thumb {
    position: relative;
    width: 44px;
    height: 44px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: visible;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.format-thumb input {
    display: none;
}

.format-thumb img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 2px;
    pointer-events: none;
}

/* Fallback icon when no thumbnail image */
.format-thumb .ft-icon {
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    color: #555;
    transition: color 0.2s;
}

.format-thumb:hover {
    border-color: #555;
}

.format-thumb.selected {
    border-color: #0F3D6E;
    background-color: #0F3D6E;
    color: #fff;
}

.format-thumb.selected i {
    color: #fff;
}

/* Tooltip */
.format-thumb .ft-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-family: "NeueHaas", sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.format-thumb:hover .ft-tooltip {
    opacity: 1;
}

/* ---------- ADD TO CART ---------- */
.bookinfo-atc-btn {
    font-family: "NeueHaas", sans-serif;
    display: inline-block;
    padding: 14px 36px;
    background: #727272;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.bookinfo-atc-btn:hover {
    background: #4a4a4a;
    color: #fff;
}

.bookinfo-atc-btn.active {
    background: #0F3D6E;
    box-shadow: 0 6px 20px rgba(15, 61, 110, 0.4);
}

.bookinfo-atc-btn.active:hover {
    background: #0B233F;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .bookread-wrapper {
        flex-direction: column;
        gap: 32px;
    }

    .book-cover-panel {
        width: 100%;
        min-height: 320px;
        padding: 40px 20px;
    }

    .book-info-col {
        padding-top: 0;
    }

    .bookinfo-price {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .bookinfo-title {
        font-size: 18px;
    }

    .bookinfo-atc-btn {
        width: 100%;
        text-align: center;
    }
}