/* =============================================================================
   Custom Single Product UI — style.css  v1.0.5
   Liberty Books style
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── Base ─────────────────────────────────────────────────────────────────── */
.cspu-wrapper {
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    padding: 20px 0 40px;
    background: #fff;
}

/* ── Inner max-width container ────────────────────────────────────────────── */
.cspu-container,
.cspu-tabs-wrapper,
.cspu-more-books-section,
.cspu-related-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ════════════════════════════════════════════════════════════════════════════
   TWO-COLUMN GRID
   ════════════════════════════════════════════════════════════════════════════ */
.cspu-container {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 32px;
}

/* ── Gallery column ───────────────────────────────────────────────────────── */
.cspu-gallery-col {
    position: relative;
    width: 100%;
}

/* Sale badge overlaid on image */
.cspu-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Kill WooCommerce gallery floats and enforce full-width */
.cspu-gallery-col .woocommerce-product-gallery,
.cspu-gallery-col div.product div.images {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    opacity: 1 !important;
}

.cspu-gallery-col .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.cspu-gallery-col .woocommerce-product-gallery__image,
.cspu-gallery-col .woocommerce-product-gallery__image:first-child {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cspu-gallery-col .woocommerce-product-gallery__image a {
    display: block;
}

.cspu-gallery-col .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 540px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.10) !important;
}

/* Thumbnails */
.cspu-gallery-col .flex-control-nav,
.cspu-gallery-col .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.cspu-gallery-col .flex-control-thumbs li { margin: 0; width: 60px; }

.cspu-gallery-col .flex-control-thumbs li img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cspu-gallery-col .flex-control-thumbs li img.flex-active,
.cspu-gallery-col .flex-control-thumbs li img:hover {
    border-color: #e53935;
}

/* ── Detail column ────────────────────────────────────────────────────────── */
.cspu-detail-col {
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

/* Stock badge */
.cspu-meta-row {
    margin-bottom: 10px;
}

.cspu-stock {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cspu-stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.cspu-stock.out-of-stock {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Title */
.cspu-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin: 0 0 10px;
}

/* Author + Rating row */
.cspu-author-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.cspu-author {
    font-size: 14px;
    color: #444;
    margin: 0;
}

.cspu-author-link {
    color: #e53935;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.cspu-author-link:hover { color: #b71c1c; text-decoration: underline; }

.cspu-rating-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cspu-rating-wrap .star-rating { font-size: 14px; }
.cspu-rating-wrap .star-rating::before,
.cspu-rating-wrap .star-rating span::before { color: #bbb; }

.cspu-review-count {
    font-size: 12px;
    color: #888;
    text-decoration: none;
}

a.cspu-review-count:hover { color: #333; text-decoration: underline; }

/* Divider */
.cspu-divider {
    border: none;
    border-top: 1px solid #ebebeb;
    margin: 10px 0 14px;
}

/* Pricing */
.cspu-pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.cspu-price-regular {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
}

.cspu-price-sale {
    font-size: 26px;
    font-weight: 700;
    color: #e53935;
}

.cspu-savings-badge {
    font-size: 12px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #c8e6c9;
    white-space: nowrap;
}

/* Short description */
.cspu-short-desc {
    font-size: 13px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 14px;
}

.cspu-short-desc p { margin: 0 0 6px; }
.cspu-short-desc p:last-child { margin-bottom: 0; }

/* Cart row — single horizontal line */
.cspu-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 16px;
}

.cspu-cart-form { margin: 0 !important; padding: 0 !important; width: 100%; }

/* Quantity — compact single-line */
.cspu-quantity {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 44px;
    width: 96px;
    flex-shrink: 0;
}

.cspu-qty-btn {
    width: 28px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    outline: none;
}

.cspu-qty-btn:hover { background: #f5f5f5; color: #e53935; }

.cspu-qty-btn:disabled,
.cspu-qty-btn--disabled { opacity: 0.3; cursor: default; }

.cspu-qty-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: none;
    border-left: 1.5px solid #ddd;
    border-right: 1.5px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    outline: none;
    -moz-appearance: textfield;
}

.cspu-qty-input::-webkit-inner-spin-button,
.cspu-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Add to cart */
.cspu-add-to-cart.button,
.cspu-add-to-cart.button.alt {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #e53935 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0 22px !important;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s !important;
    box-shadow: 0 2px 6px rgba(229,57,53,.3) !important;
    white-space: nowrap !important;
    letter-spacing: 0.2px !important;
}

.cspu-add-to-cart.button:hover,
.cspu-add-to-cart.button.alt:hover {
    background: #c62828 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* Wishlist icon button */
.cspu-wishlist-wrap { display: flex; align-items: center; }

.cspu-wishlist-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.cspu-wishlist-btn:hover,
.cspu-wishlist-btn.cspu-wishlist--active {
    border-color: #e53935;
    color: #e53935;
    background: #fff5f5;
}

.cspu-wishlist-wrap .yith-wcwl-add-to-wishlist { margin: 0 !important; }

.cspu-wishlist-wrap .yith-wcwl-add-button a,
.cspu-wishlist-wrap .yith-wcwl-add-to-wishlist a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555;
    transition: border-color 0.2s, color 0.2s;
}

.cspu-wishlist-wrap .yith-wcwl-add-button a:hover,
.cspu-wishlist-wrap .yith-wcwl-add-to-wishlist a:hover {
    border-color: #e53935;
    color: #e53935;
}

/* Out of stock */
.cspu-out-of-stock {
    font-size: 14px;
    color: #e53935;
    font-weight: 600;
    margin: 10px 0;
}

/* Tags */
.cspu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.cspu-tag-pill {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    color: #555;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: background 0.15s, color 0.15s;
}

.cspu-tag-pill:hover { background: #ebebeb; color: #111; }

/* ════════════════════════════════════════════════════════════════════════════
   TABS
   ════════════════════════════════════════════════════════════════════════════ */
.cspu-tabs-wrapper {
    margin-bottom: 32px;
    padding-top: 0;
}

.cspu-tabs-nav {
    display: flex;
    border-bottom: 2px solid #ebebeb;
    gap: 0;
    margin-bottom: 0;
}

.cspu-tab-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #777;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 22px;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    outline: none;
}

.cspu-tab-btn:hover { color: #333; }

.cspu-tab-btn.active {
    color: #e53935;
    border-bottom-color: #e53935;
    font-weight: 600;
}

.cspu-tab-panel {
    display: none;
    padding: 24px 0;
    font-size: 14px;
    line-height: 1.85;
    color: #444;
    animation: cspu-fadein 0.2s ease;
}

.cspu-tab-panel.active { display: block; }

@keyframes cspu-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cspu-tab-panel p { margin: 0 0 12px; }
.cspu-tab-panel p:last-child { margin-bottom: 0; }
.cspu-tab-panel h2, .cspu-tab-panel h3 {
    font-family: 'Playfair Display', serif;
    color: #111;
    margin: 16px 0 8px;
}

/* Book details table */
.cspu-attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cspu-attr-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.cspu-attr-table th {
    text-align: left;
    font-weight: 600;
    color: #333;
    padding: 10px 16px 10px 0;
    width: 35%;
    white-space: nowrap;
}

.cspu-attr-table td {
    color: #555;
    padding: 10px 0;
}

/* Reviews */
.cspu-tab-panel #reviews { padding: 0; }
.cspu-tab-panel .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

/* ════════════════════════════════════════════════════════════════════════════
   MORE BOOKS FROM THIS AUTHOR
   ════════════════════════════════════════════════════════════════════════════ */
.cspu-more-books-section {
    margin-top: 48px;
    margin-bottom: 36px;
}

.cspu-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.cspu-section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
    letter-spacing: -0.2px;
}

.cspu-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #e53935;
    text-decoration: none;
    transition: color 0.2s;
}

.cspu-view-all:hover { color: #b71c1c; }

/* Horizontal scroll container for shortcode output */
.cspu-book-cards-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    -webkit-overflow-scrolling: touch;
}

.cspu-book-cards-scroll::-webkit-scrollbar {
    height: 4px;
}

.cspu-book-cards-scroll::-webkit-scrollbar-track { background: transparent; }
.cspu-book-cards-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* Force shortcode's ul.products into horizontal flex row */
.cspu-book-cards-scroll ul.products,
.cspu-book-cards-scroll ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: max-content;
}

/* Each product card */
@keyframes cspu-card-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cspu-book-cards-scroll ul.products li.product,
.cspu-book-cards-scroll ul li {
    width: 170px !important;
    flex: 0 0 170px !important;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: box-shadow 0.25s, transform 0.25s;
    animation: cspu-card-in 0.35s ease both;
    cursor: pointer;
    position: relative;
}

/* Stagger delays */
.cspu-book-cards-scroll ul li:nth-child(1) { animation-delay: 0.05s; }
.cspu-book-cards-scroll ul li:nth-child(2) { animation-delay: 0.10s; }
.cspu-book-cards-scroll ul li:nth-child(3) { animation-delay: 0.15s; }
.cspu-book-cards-scroll ul li:nth-child(4) { animation-delay: 0.20s; }
.cspu-book-cards-scroll ul li:nth-child(5) { animation-delay: 0.25s; }
.cspu-book-cards-scroll ul li:nth-child(6) { animation-delay: 0.30s; }
.cspu-book-cards-scroll ul li:nth-child(7) { animation-delay: 0.35s; }
.cspu-book-cards-scroll ul li:nth-child(8) { animation-delay: 0.40s; }

.cspu-book-cards-scroll ul.products li.product:hover,
.cspu-book-cards-scroll ul li:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    transform: translateY(-5px);
}

/* Book cover */
.cspu-book-cards-scroll img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* Title in card */
.cspu-book-cards-scroll .woocommerce-loop-product__title,
.cspu-book-cards-scroll h2,
.cspu-book-cards-scroll h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111 !important;
    font-family: 'Poppins', sans-serif !important;
    margin: 0 0 4px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

/* Author name in card */
.cspu-book-cards-scroll .cspu-card-author,
.cspu-book-cards-scroll .author {
    font-size: 11px;
    color: #e53935;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Price in card */
.cspu-book-cards-scroll .price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 8px !important;
}

.cspu-book-cards-scroll .price ins {
    text-decoration: none;
    color: #e53935;
}

.cspu-book-cards-scroll .price del {
    font-size: 11px;
    color: #999;
}

/* Add to cart in card */
.cspu-book-cards-scroll .add_to_cart_button,
.cspu-book-cards-scroll .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 7px 0 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    font-family: 'Poppins', sans-serif !important;
    margin: 0 !important;
}

.cspu-book-cards-scroll .add_to_cart_button:hover,
.cspu-book-cards-scroll .button:hover {
    background: #c62828 !important;
    color: #fff !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   RELATED PRODUCTS (WooCommerce default styled)
   ════════════════════════════════════════════════════════════════════════════ */
.cspu-related-section {
    margin-bottom: 20px;
}

.cspu-related-section .related.products h2,
.cspu-related-section .related > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.cspu-related-section ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 18px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cspu-related-section ul.products li.product {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: box-shadow 0.25s, transform 0.25s;
}

.cspu-related-section ul.products li.product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
    transform: translateY(-4px);
}

.cspu-related-section ul.products li.product img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.cspu-related-section ul.products .woocommerce-loop-product__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin: 0 0 6px !important;
    font-family: 'Poppins', sans-serif !important;
}

.cspu-related-section ul.products .price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #e53935 !important;
    margin-bottom: 8px !important;
}

.cspu-related-section ul.products .add_to_cart_button,
.cspu-related-section ul.products .button {
    display: inline-flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 7px 0 !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
    font-family: 'Poppins', sans-serif !important;
    margin: 0 !important;
}

.cspu-related-section ul.products .add_to_cart_button:hover,
.cspu-related-section ul.products .button:hover {
    background: #c62828 !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

/* Large desktop (≥1200px) */
@media (min-width: 1200px) {
    .cspu-container {
        grid-template-columns: 46% 1fr;
        gap: 48px;
    }
    .cspu-gallery-col .woocommerce-product-gallery__image img { height: 580px !important; }
    .cspu-title { font-size: 28px; }
}

/* Medium desktop (901–1199px) */
@media (min-width: 901px) and (max-width: 1199px) {
    .cspu-container {
        grid-template-columns: 42% 1fr;
        gap: 36px;
    }
    .cspu-gallery-col .woocommerce-product-gallery__image img { height: 500px !important; }
    .cspu-title { font-size: 24px; }
    .cspu-price-sale { font-size: 24px; }
}

/* Tablet landscape (769–900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .cspu-container {
        grid-template-columns: 40% 1fr;
        gap: 24px;
    }
    .cspu-gallery-col .woocommerce-product-gallery__image img { height: 400px !important; }
    .cspu-title { font-size: 20px; }
    .cspu-price-sale { font-size: 22px; }
    .cspu-related-section ul.products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 14px !important;
    }
}

/* Tablet portrait (601–768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .cspu-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    .cspu-gallery-col .woocommerce-product-gallery__image img {
        height: 380px !important;
        object-fit: cover !important;
    }
    .cspu-title { font-size: 21px; }
    .cspu-price-sale { font-size: 22px; }
    .cspu-related-section ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
    .cspu-more-books-section { margin-top: 32px; }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .cspu-wrapper { padding: 12px 0 28px; }

    .cspu-container,
    .cspu-tabs-wrapper,
    .cspu-more-books-section,
    .cspu-related-section {
        padding: 0 14px;
    }

    .cspu-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cspu-gallery-col .woocommerce-product-gallery__image img {
        height: auto !important;
        max-height: 340px !important;
        object-fit: contain !important;
        box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
    }

    .cspu-title { font-size: 19px; line-height: 1.35; }
    .cspu-price-sale { font-size: 22px; }
    .cspu-price-regular { font-size: 13px; }

    .cspu-author-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Cart row wraps on very small screens */
    .cspu-cart-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cspu-add-to-cart.button,
    .cspu-add-to-cart.button.alt {
        flex: 1 !important;
        min-width: 0 !important;
        justify-content: center !important;
    }

    /* Tabs scroll horizontally */
    .cspu-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cspu-tabs-nav::-webkit-scrollbar { display: none; }
    .cspu-tab-btn { padding: 10px 18px; font-size: 13px; white-space: nowrap; }

    .cspu-section-heading h2 { font-size: 18px; }
    .cspu-more-books-section { margin-top: 32px; }

    /* More books cards — slightly smaller on mobile */
    .cspu-book-cards-scroll ul li { width: 140px !important; flex: 0 0 140px !important; }
    .cspu-book-cards-scroll img { height: 165px !important; }

    /* Related products — 2 columns on mobile, no overflow */
    .cspu-related-section ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow: hidden !important;
    }

    .cspu-related-section ul.products li.product img {
        height: 150px !important;
    }
}
