.rich-books {background:#f8f3e9}
body.rich-books:has(#book-catalog) .publisher-promos {width:min(1180px,94%);border-radius:18px;box-shadow:none;background:transparent}
.rich-books .publisher-promos .book-promo {border-top:0;border-radius:18px;min-height:340px;grid-template-columns:1fr 1.2fr}
.rich-books .publisher-promos .book-promo-copy {padding:clamp(22px,5vw,58px);min-height:0}
.rich-books .publisher-promos .book-promo h2 {font-family:Georgia,"Noto Serif SC",serif;color:#443226;font-weight:700;letter-spacing:-.035em}
.rich-books .publisher-promos .book-promo-art {height:auto;min-height:340px;overflow:hidden}
.rich-books .publisher-promos .masteri-poster-art {height:100%}
.rich-books .poster-controls {background:transparent;border:0;padding:12px 0;flex-direction:row;justify-content:flex-start;flex-wrap:wrap}
.rich-books .poster-tabs {width:auto;flex:1 1 auto;justify-content:flex-start}
.rich-books .poster-controls button {border-radius:8px;border-color:#bda78e;background:#fffaf2;color:#443226}
.rich-books .poster-controls button[aria-pressed=true] {background:#51382b;color:#fff8ed;border-color:#51382b}
.rich-books .rich-motion-controls {display:flex;gap:5px}
body.rich-books:has(#book-catalog) #book-catalog {width:min(1840px,94%);margin-inline:auto;padding-inline:0}
.rich-books .books-grid {gap:14px}
.rich-books .book-card {background:#fffaf2;border:1px solid #e4d8c4;border-radius:12px}
.rich-books .book-cover-frame {background:#f2e9dc;border-radius:7px}
.rich-books .quote-success-count {border-radius:8px;background:#efdaa7}
@media(prefers-reduced-motion:no-preference) {
 .rich-books:not(.rich-motion-off) .book-card {animation:rich-book-enter .38s cubic-bezier(.2,.75,.35,1) var(--book-motion-delay,0ms) both}
}
@keyframes rich-book-enter {from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:680px){
 .rich-books .publisher-promos .book-promo {grid-template-columns:1fr}
 .rich-books .publisher-promos .book-promo-art {min-height:0;height:235px}
 .rich-books .publisher-promos .masteri-poster-art {height:auto}
 .rich-books .books-grid {gap:10px}
}

.rich-books .publisher-promos .poster-books img {transform:none}
.rich-books .publisher-promos .poster-books img:first-child {rotate:-9deg}
.rich-books .publisher-promos .poster-books img:last-child {rotate:9deg}

#book-catalog .book-card .book-reader {padding:10px 10px 0;border:0;flex:none}
#book-catalog .book-card .book-cover-frame {aspect-ratio:9/8;background:#f1e8d8}
#book-catalog .book-card .book-cover-frame img {width:100%;height:100%;object-fit:contain}
.book-card-summary {padding:7px 10px 0}
.book-card-caption {display:block;line-height:1.3;overflow-wrap:anywhere}
.book-card-summary .book-price-em {margin:4px 0 0}
#book-catalog .book-card-utilities {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;padding:0 10px 4px;border:0;margin-top:auto}
#book-catalog .book-card-utilities>.catalog-share {flex:none;width:88px;min-width:0;margin:0 0 0 auto;padding:0;border:0}
.book-card-info,.book-detail-dialog button,.book-detail-preview {font:inherit;border:1px solid #d1bfa8;border-radius:7px;background:#fffaf2;color:#49382e;padding:6px 9px;cursor:pointer}
.book-card-info {font-size:.75rem;min-height:34px;max-width:100%;line-height:1.2;text-align:left;overflow-wrap:anywhere}
#book-catalog .book-card>.quote-add {margin-top:0}
.book-detail-dialog {
 position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(560px,calc(100% - 24px));
 max-width:none;max-height:calc(100% - 24px);overflow:auto;padding:0;
 border:1px solid #dac8ad;border-radius:18px;background:#fffaf2;color:#443226;
 box-shadow:0 16px 52px #2e211b44;
}
.book-detail-dialog::backdrop {background:#2e211b88}
.book-detail-heading,.book-detail-footer {display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background:#f3e8d5}
.book-detail-heading p {margin:0;color:#6b513b;font-weight:700;font-size:.86rem}
.book-detail-dialog .book-detail-close {display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border-radius:50%;font-size:1.5rem;line-height:1}
.book-detail-body {display:grid;grid-template-columns:minmax(85px,32%) minmax(0,1fr);gap:18px;padding:18px}
.book-detail-cover {display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;background:#f1e8d8;border-radius:8px}
.book-detail-dialog h2 {margin:0 0 10px;font:750 clamp(1rem,3.8vw,1.3rem)/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
.book-detail-dialog dl {margin:0}
.book-detail-dialog dl>div {padding:5px 0;border-top:1px solid #e8ddca}
.book-detail-dialog dt {font-size:.72rem;color:#725b47}
.book-detail-dialog dd {margin:0;font-size:.88rem;font-weight:600;overflow-wrap:anywhere}
.book-detail-footer {justify-content:flex-end}
.book-detail-preview {display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#51382b;color:#fff8ed;padding-inline:16px;font-weight:700}
@media(max-width:480px){
 .book-detail-heading,.book-detail-footer {padding-inline:12px}
 .book-detail-body {gap:11px;padding:12px}
 .book-detail-preview {width:100%}
}
@media(max-width:480px){
 #book-catalog .book-card .book-reader {padding:7px 7px 0}
 .book-card-summary,#book-catalog .book-card-utilities {padding-inline:7px}
}

.rich-books .publisher-promos .masteri-poster-cream {background:#fff0ce}
.rich-books .masteri-poster-cream:before {content:none}
.rich-books .masteri-poster-cream .masteri-art-crop img {
 inset:0;width:100%;height:100%;transform:none;object-fit:contain;
}
.rich-books .publisher-promos .masteri-poster-cream .poster-brand {filter:none}

.book-card-summary .book-price-pending {color:#695b4e;font-weight:500}

/* Match the Sasbadi shelf's lift, shadow and cover zoom on desktop. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rich-books:not(.rich-motion-off) #book-catalog .book-card {
    transition: translate 0.3s ease, box-shadow 0.3s ease;
  }
  .rich-books:not(.rich-motion-off) #book-catalog .book-cover-frame img {
    transition: scale 0.3s ease;
  }
  .rich-books:not(.rich-motion-off) #book-catalog .book-card:is(:hover, :focus-within) {
    translate: 0 -8px;
    box-shadow: 0 15px 35px rgb(0 0 0 / 15%);
  }
  .rich-books:not(.rich-motion-off) #book-catalog .book-card:is(:hover, :focus-within) .book-cover-frame img {
    scale: 1.05;
  }
}
