/* Keep original cover proportions; turn the complete book surface, not the image crop. */
.pd-book-card .pd-book-peek{width:100%;margin-bottom:1.5rem;perspective:1400px}
.pd-peek-turn{position:relative;min-height:380px;transform-style:preserve-3d;transition:transform .55s ease}
.pd-book-peek.is-flipped .pd-peek-turn{transform:rotateY(180deg)}
.pd-peek-front{height:380px;display:flex;align-items:center;justify-content:center;padding:24px;backface-visibility:hidden}
.pd-peek-back{position:absolute;inset:0;transform:rotateY(180deg);backface-visibility:hidden;background:linear-gradient(145deg,#f4ebdd,#e6d4ba);color:#271421;border:1px solid #b99a5a;padding:24px;overflow:auto;border-radius:3px;box-shadow:10px 12px 20px #0005}
.pd-peek-back[hidden]{display:none}.pd-peek-back h4{font-family:Georgia,serif;font-size:1.65rem;line-height:1.15;color:#681c35;margin:0 0 1rem}.pd-peek-back p{font-size:.95rem;line-height:1.6;margin-bottom:1rem}.pd-peek-back .eyebrow{color:#681c35}.pd-peek-back .button{color:#681c35!important;border-color:#681c35!important;background:transparent!important;min-height:44px}
.pd-book-card .pd-book-cover{width:auto!important;height:auto!important;aspect-ratio:var(--cover-ratio,4 / 5);max-width:100%;max-height:320px;padding:0!important;background:none;display:block;overflow:hidden;box-shadow:5px 2px 0 #bba889,8px 4px 0 #46353c,14px 18px 25px #0009;transform:rotateY(-9deg) rotateZ(-2deg);flex:none}
.pd-book-card .pd-book-cover:not(.from-wrap){height:300px!important}
.pd-book-card .pd-book-cover img{position:static;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;transform:none!important;filter:none!important;display:block}
.pd-book-card .pd-book-cover.from-wrap{height:300px!important;width:auto!important;margin:0!important}
.pd-book-card .pd-book-cover.from-wrap img{position:absolute;left:0;top:0;width:200%!important;max-width:none!important;height:100%!important;object-fit:fill!important;transform:translateX(-50%)!important}
.pd-book-card.pen-progress .pd-book-cover:after{display:none!important}.pd-book-card.pen-progress .pd-book-cover img{filter:none!important}
.pd-peek-toggle,.pd-save-button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-family:inherit;font-size:.9rem;font-weight:600;line-height:1.4;cursor:pointer;padding:.6rem 1rem;background:#24151f;color:#f4ebdd;border:1px solid #b99a5a88;border-radius:24px;text-decoration:none;box-shadow:none}
.pd-peek-toggle{width:100%;margin-top:8px}.pd-save-button{margin-top:1rem}.pd-save-button[aria-pressed=true]{background:#681c35;color:#f4ebdd;border-color:#b99a5a}.pd-save-button:hover,.pd-peek-toggle:hover{background:#46353c;color:#fff1df}.pd-save-button:focus-visible,.pd-peek-toggle:focus-visible{outline:2px solid #e6bd7a;outline-offset:4px}
@media(max-width:500px){.pd-peek-front{padding:20px}.pd-peek-turn,.pd-peek-front{min-height:350px;height:350px}.pd-book-card .pd-book-cover:not(.from-wrap),.pd-book-card .pd-book-cover.from-wrap{height:270px!important}.pd-peek-back{padding:20px}}
@media(prefers-reduced-motion:reduce){.pd-peek-turn{transition:none}.pd-book-card .pd-book-cover{transform:none}}

/* A measured shelf: every row stretches, every artwork slot has one height. */
#shop-products .commerce-grid{align-items:stretch;grid-auto-rows:1fr}
#shop-products .commerce-product{align-self:stretch;height:100%;margin:0;width:100%;max-width:none;clip-path:none;box-sizing:border-box}
#shop-products .commerce-product>.commerce-image-link,#shop-products .commerce-product>.digital-art{height:430px;min-height:430px;width:100%;margin:0 0 24px;display:grid;place-items:center;flex-shrink:0}
#shop-products .commerce-product>.commerce-image-link>.commerce-image{height:100%;min-height:0;width:100%}
#shop-products .pd-book-peek{height:430px;min-height:430px;margin:0 0 24px;flex-shrink:0;box-sizing:border-box}
#shop-products .pd-peek-turn{min-height:365px;height:365px}#shop-products .pd-peek-front{height:365px}
#shop-products .commerce-product>h3{min-height:2.5em;margin-top:0}
#shop-products .product-actions{margin-top:auto;align-items:stretch;width:100%}
#shop-products .product-actions .button{display:flex;align-items:center;justify-content:center;text-align:center}
#shop-products .commerce-product>.pd-save-button{margin-bottom:0;align-self:flex-start}
#shop-products .commerce-product.pen-progress .commerce-image:not(.pd-book-cover):after,#shop-products .commerce-product.pen-progress .digital-art:after{content:'';position:absolute;inset:0;display:block;background:#24121f url('/assets/pen-in-progress-quill.svg') center/contain no-repeat;backdrop-filter:none;transform:none;border:1px solid #b99a5a55}
#shop-products .commerce-product.pen-progress .commerce-image:not(.pd-book-cover)>*,#shop-products .commerce-product.pen-progress .digital-art>*{visibility:hidden}
#shop-products .commerce-product.pen-progress .pen-progress-badge{position:static!important;width:fit-content!important;height:auto;overflow:visible;clip-path:none;padding:.42rem .75rem;border:1px solid #b99a5a}
@media(max-width:600px){#shop-products .commerce-grid{grid-auto-rows:auto}#shop-products .commerce-product>.commerce-image-link,#shop-products .commerce-product>.digital-art,#shop-products .pd-book-peek{height:390px;min-height:390px}#shop-products .pd-peek-turn,#shop-products .pd-peek-front{height:325px;min-height:325px}}

.pd-pending-illustration{width:auto;height:100%;max-width:100%;object-fit:contain;box-shadow:8px 12px 24px #0006}
/* Edition detail artwork keeps the entire supplied cover visible. */
.pd-detail-art{margin:0;min-width:0}.pd-detail-art .commerce-image.pd-book-cover:not(.from-wrap){width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;overflow:visible;background:transparent;display:flex;align-items:flex-start;justify-content:center;padding:0;clip-path:none}.pd-detail-art .pd-book-cover:not(.from-wrap) img{display:block;position:static;width:auto!important;height:auto!important;max-width:100%;max-height:650px;object-fit:contain!important;transform:none!important;clip-path:none;box-shadow:8px 10px 0 #b99a5a55,14px 18px 28px #0005}.pd-detail-art:hover .pd-book-cover:not(.from-wrap) img{transform:none!important}@media(max-width:850px){.pd-detail-art .pd-book-cover:not(.from-wrap) img{max-height:520px}}
