/* Purchase sheet only. Catalogue cards and print-canvas geometry are untouched. */
body.qs-themed #productModal{padding:0!important;overflow:hidden;max-height:92dvh;display:flex;flex-direction:column;background:#fafbfd}
body.qs-themed #productModal:not(.open):not([data-qs-exiting]){display:none}
body.qs-themed #productModal:focus{outline:none}
body.qs-themed #productDetail{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}
.product-sheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;flex:none;border-bottom:1px solid #dce2e9;background:linear-gradient(120deg,#fff,#eef1f6);color:#445367;font-size:13px;font-weight:650}
body.qs-themed #productModal .product-sheet-toolbar .close{position:static;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;font-size:26px;margin:0;flex:none}
body.qs-themed #productModal .detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:'gallery summary' 'gallery content';gap:0 28px;padding:24px;align-items:start}
body.qs-themed #productModal .product-summary{grid-area:summary;min-width:0;padding:4px 0 18px}
body.qs-themed #productModal .detail-gallery{grid-area:gallery;margin:0}
body.qs-themed #productModal .detail-content{grid-area:content;min-width:0;padding:0;display:block}
body.qs-themed #productModal .product-summary .modal-top{margin:0 0 8px;padding:0;min-height:0}
body.qs-themed #productModal .product-summary h2{font-size:clamp(25px,2.3vw,36px);line-height:1.14;margin:0 0 14px;letter-spacing:-.025em}
body.qs-themed #productModal .detail-price{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0;font-size:23px}
body.qs-themed #productModal .detail-price>small{font-size:12px;color:#46634f;text-align:end}
body.qs-themed #productModal .detail-price>span{white-space:nowrap}
body.qs-themed #productModal .choice-label,.variant-select-label{display:block;margin:0 0 10px;font-size:14px;font-weight:650}
body.qs-themed #productModal .compact-choices{margin:0 0 18px;gap:8px}
body.qs-themed #productModal .choice{border-radius:12px;min-height:54px;text-align:start;padding:10px 14px}
body.qs-themed #productModal .choice.active{background:#edf5f0;border-color:#47806a;color:#20513e}
body.qs-themed #productModal .product-tutorial{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px;margin:14px 0;min-height:44px;border:1px solid #c8d2df;border-radius:12px;background:#f3f6fa;color:#244460;font:inherit;font-size:14px;font-weight:600;cursor:pointer;box-shadow:none}
.tutorial-play{font-size:12px;flex:none}
body.qs-themed #productModal .product-details-disclosure{border-top:1px solid #d9e0e9;margin:22px 0 12px;padding:16px 0}
.product-details-disclosure>summary{cursor:pointer;font-weight:650;min-height:32px;color:#223448}
body.qs-themed #productModal .detail-copy{font-size:15px;line-height:1.7;margin:12px 0 0;color:#526071;max-width:65ch}
.product-choice-hint{color:#28556c;background:#edf5fa;border-radius:8px;padding:10px;font-size:13px}
body.qs-themed #productModal #detailAdd{margin-top:16px;width:100%;min-height:50px;background:#19354b;color:white;border-radius:14px;font-size:15px}
body.qs-themed #productModal .note{font-size:12px;color:#586779;margin:12px 0}
body.qs-themed #productModal .product-purchase-bar{display:none}
body.qs-themed #productModal .product-photo-caption:not(:has(+.image-thumbs)){display:none}
body.qs-themed #productModal .product-photo-caption{padding:8px 12px;font-size:12px}
body.qs-themed #productModal [data-gallery-position]{direction:ltr;unicode-bidi:isolate}
body.qs-themed #productModal .design-panel{margin:16px 0;padding:16px;border-radius:14px}
body.qs-themed #productModal.has-photo-editor .detail-grid{display:block}
body.qs-themed #productModal.has-photo-editor .detail-content{padding:0}
body.qs-themed #productModal.has-photo-editor .product-summary{border-bottom:1px solid #dce2e9;margin-bottom:18px}
.qs-photo-viewer .photo-viewer-footer[hidden]{display:none!important}
#productModal :is(button,summary,select):focus-visible{outline:3px solid #2f748a;outline-offset:3px}
@media(max-width:700px){
 body.qs-themed #productModal,body.qs-themed #productModal.open{inset:0!important;transform:none!important;width:100%!important;height:100dvh;max-height:100dvh!important;max-width:none!important;border-radius:0!important;border:0}
 .product-sheet-toolbar{padding:calc(8px + env(safe-area-inset-top)) 18px 8px}
 body.qs-themed #productModal .detail-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:'summary' 'gallery' 'content';padding:18px;gap:0}
 body.qs-themed #productModal .product-summary{padding:0 0 18px}
 body.qs-themed #productModal .product-summary h2{font-size:27px;margin-bottom:12px}
 body.qs-themed #productModal .detail-gallery{margin-bottom:20px}
 body.qs-themed #productModal .detail-gallery .detail-visual{aspect-ratio:5/4}
 body.qs-themed #productModal .product-photo-open{padding:12px}
 body.qs-themed #productModal .product-purchase-bar{display:flex;flex:none;gap:12px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:#f8fafded}
 body.qs-themed #productModal .product-purchase-bar>div{min-width:0;flex:1}
 body.qs-themed #productModal .product-purchase-bar strong{display:block;white-space:nowrap;font-size:15px}
 body.qs-themed #productModal .product-purchase-bar small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw;font-size:11px;margin-top:4px}
 body.qs-themed #productModal .product-purchase-bar button{max-width:58%;font-size:13px;border-radius:13px;min-height:48px;padding:10px 16px}
 body.qs-themed #productModal:not(.has-photo-editor) #detailAdd{display:none}
 body.qs-themed #productModal.has-photo-editor .product-purchase-bar{display:none}
 body.qs-themed #productModal .favourite-action{font-size:13px}
}
@media(prefers-reduced-transparency:reduce){.product-sheet-toolbar{background:#f2f5f9}}
