.carousel:after{display:none}.carousel-track{height:100%;display:flex;transition:transform .75s cubic-bezier(.22,.65,.2,1);will-change:transform}.carousel-track.no-transition{transition:none}.hero-slide{flex:0 0 100%;min-width:0;position:relative;height:100%;isolation:isolate;overflow:hidden;background:#f5f3f0}.hero-slide>img{position:absolute;right:0;top:0;width:66%;height:100%;object-fit:cover;z-index:-2}.hero-slide:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#f5f3f0 1%,#f5f3f0f5 27%,#f5f3f044 59%,#fff0 75%);z-index:-1}.hero-slide .hero-content{height:100%}.carousel .hero-controls,.carousel .hero-dots{z-index:2}.carousel{touch-action:pan-y}.hero-slide h1{font-size:clamp(30px,3vw,46px)}.hero-slide .hero-content{padding-top:34px}.hero-slide .eyebrow{font-size:10px}.hero-slide .primary{margin-top:20px}.back-link{color:#888;font-size:13px;margin-bottom:28px;padding:0}.back-link:hover{color:#eb692c}.product-page{max-width:1160px;margin:6px auto 50px}.product-title{font-size:clamp(26px,3vw,38px);line-height:1.4;margin:12px 0}.product-summary{font-size:14px;color:#777;line-height:1.9;max-width:850px;white-space:pre-line}.product-badges{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0 24px}.product-badges span{border:1px solid #e8e8ec;background:#fafafa;color:#777;font-size:12px;padding:5px 9px;border-radius:5px}.product-hero{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:26px;align-items:start}.gallery-stage{padding:0;width:100%;display:block;background:#f6f6f7;border:1px solid #e9e9eb;border-radius:12px;overflow:hidden;position:relative}.gallery-stage img{display:block;width:100%;height:440px;object-fit:contain}.gallery-stage span{position:absolute;bottom:14px;right:14px;font-size:12px;background:#222b;color:white;border-radius:6px;padding:8px 10px}.gallery-thumbs{display:flex;gap:9px;margin-top:12px;overflow-x:auto;padding:2px}.gallery-thumbs button{padding:3px;width:78px;height:58px;flex-shrink:0;border:1px solid #e4e4e8;border-radius:7px}.gallery-thumbs button.selected{border-color:#f16a2c;box-shadow:0 0 0 1px #f16a2c}.gallery-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:4px}.purchase-card{border:1px solid #e7e7eb;border-radius:12px;padding:28px;background:#fff;box-shadow:0 7px 30px #1a1a1a04}.purchase-card h2{margin-top:10px;font-size:25px}.purchase-card p{font-size:13px;color:#8b8b90;line-height:1.8;margin:12px 0 21px}.purchase-price{font-size:34px;font-weight:800;margin-top:15px;color:#e96728}.purchase-card .primary{display:block;text-align:center}.purchase-card ul{list-style:none;padding:17px 0;margin:18px 0 0;border-top:1px solid #eee}.purchase-card li{font-size:12px;color:#85858d;margin:11px 0}.purchase-card li:before{content:'✓';color:#e96728;margin-right:8px}.purchase-note{border-top:1px solid #eee;padding-top:17px;font-size:11px;color:#999;line-height:1.9}.detail-nav{display:flex;gap:28px;border-bottom:1px solid #e7e7ea;padding:22px 0 15px;margin:27px 0 10px;overflow-x:auto;white-space:nowrap}.detail-nav a{font-size:14px;color:#777}.detail-nav a:hover{color:#ed6b2e}.detail-section{padding-top:30px;scroll-margin-top:105px}.detail-section>h2{font-size:23px;margin-bottom:19px}.description-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.info-card{border:1px solid #e4e4e9;border-radius:9px;padding:22px}.info-card h3{font-size:15px;margin-bottom:11px}.info-stack{display:flex;flex-direction:column;gap:12px}.info-stack .info-card{padding:17px 20px}.prose{font-size:14px;line-height:1.95;color:#777;overflow-wrap:anywhere}.detail-long-image{width:100%;height:auto;display:block;margin:20px 0;border-radius:9px}.package-panel{display:grid;grid-template-columns:.8fr 1.2fr;gap:20px}.package-symbol{padding:30px;background:#fafafa;border-radius:9px;display:flex;flex-direction:column;justify-content:center}.package-symbol>span{font-size:48px;color:#e36e37;margin-bottom:18px}.package-symbol h3{font-size:16px}.package-symbol p{font-size:12px;color:#999;margin-top:10px}.package-panel dl{margin:0;border:1px solid #e5e5e9;border-radius:9px;overflow:hidden}.package-panel dl>div{display:grid;grid-template-columns:110px 1fr;border-bottom:1px solid #eee;font-size:13px;line-height:1.8}.package-panel dl>div:last-child{border:0}.package-panel dt{padding:13px;background:#fafafa;color:#888}.package-panel dd{margin:0;padding:13px;color:#666;overflow-wrap:anywhere}.video-block{margin-bottom:20px}.video-block h3{font-size:14px;margin-bottom:10px;color:#777}.video-block video{display:block;width:100%;max-height:630px;background:#111;border-radius:10px}.content-placeholder{padding:40px;text-align:center;border:1px dashed #e4e4e7;border-radius:9px;color:#aaa;font-size:14px}.learning-panel{background:#fafafa;border:1px solid #ededf0;border-radius:12px;padding:25px;margin-top:35px}.learning-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.learning-heading h2{font-size:21px}.learning-heading p{font-size:13px;color:#999;margin-top:9px}.lesson{background:white;border:1px solid #e8e8ec;border-radius:8px;padding:15px;margin-bottom:12px}.lesson summary{cursor:pointer;display:flex;justify-content:space-between;gap:15px;font-size:14px}.lesson summary span:last-child{color:#e36b31;font-size:12px;white-space:nowrap}.lesson video{width:100%;max-height:600px;background:#111;margin-top:15px}.download-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px;background:#fff;border:1px solid #e9e9ec;border-radius:8px;margin-bottom:10px;font-size:13px}.download-row small{display:block;color:#aaa;margin:6px 0 0 20px}.download-row>span{overflow-wrap:anywhere;min-width:0}.download-row a{white-space:nowrap}.locked-label{color:#aaa}.learning-buy{max-width:230px;margin-top:18px}.expanded-image{display:block;width:100%;max-height:75vh;object-fit:contain}.content-loading{padding:80px;text-align:center;color:#999}.editor-section{border-top:1px solid #ededee;padding-top:22px;margin-top:14px}.editor-section h3{font-size:17px;margin-bottom:20px}.editor-section>label{margin-bottom:16px}.editor-section .form-row{margin-bottom:16px}.editor-section textarea{min-height:110px}.editor-save{position:sticky;bottom:-30px;background:#fffffff5;z-index:2;border-top:1px solid #eee;padding:16px 0;display:flex;gap:18px;align-items:center}.editor-save span{font-size:12px;color:#999}.content-editor{width:100%}dialog:has(.content-editor){width:min(1020px,calc(100% - 30px))}.upload-section{border:1px solid #e5e5e9;padding:19px;border-radius:10px;margin-bottom:18px}.upload-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.upload-heading h4{margin:0 0 7px;font-size:15px}.upload-heading small{font-size:12px;color:#999}.upload-button{display:inline-flex!important;align-items:center;justify-content:center;position:relative;border:1px solid #edccb9;background:#fff8f4;color:#c05b28!important;padding:10px 15px;border-radius:8px;cursor:pointer;font-size:13px!important;white-space:nowrap}.upload-button input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.upload-button:has(input:disabled){opacity:.4;cursor:not-allowed}.upload-button:focus-within{outline:2px solid #ed6b2e;outline-offset:3px}.upload-empty{font-size:12px;color:#aaa;text-align:center;padding:22px 0 8px}.upload-progress{font-size:12px;color:#d86b33;line-height:1.8;margin-top:12px;overflow-wrap:anywhere}.uploaded-item{display:flex;align-items:center;gap:12px;background:#fafafa;border-radius:8px;padding:10px;margin-top:10px}.uploaded-item img,.uploaded-item video{width:100px;height:66px;object-fit:cover;border-radius:5px}.uploaded-item>div{flex:1;min-width:0}.uploaded-item strong{display:block;font-size:12px;overflow-wrap:anywhere}.uploaded-item small{display:block;color:#999;font-size:11px;margin-top:6px}.uploaded-item button{padding:6px}.file-symbol{font-size:35px;width:60px;text-align:center;color:#d1733f}.banner-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.banner-editor{border:1px solid #e5e5e9;border-radius:12px;padding:22px;background:white}.banner-editor>img{width:100%;height:170px;object-fit:cover;border-radius:8px;margin-bottom:18px}.banner-editor .upload-button{margin-top:16px}.banner-editor textarea{min-height:70px}.media-editor-note{font-size:12px;color:#999}
@media(min-width:1650px){.hero-slide .hero-content{padding-top:47px}.hero-slide h1{font-size:48px}}
@media(max-width:900px){.product-hero{grid-template-columns:1fr}.purchase-card{padding:22px}.gallery-stage img{height:380px}.description-grid{grid-template-columns:1fr}.package-panel{grid-template-columns:1fr}.banner-admin-grid{grid-template-columns:1fr}.product-title{font-size:28px}.detail-nav{gap:20px}}
@media(max-width:600px){.hero-slide>img{width:85%;opacity:.7}.hero-slide:after{background:linear-gradient(90deg,#f5f3f0f5,#f5f3f0b5 55%,#fff0)}.hero-slide .hero-content{padding:28px 20px}.hero-slide h1{font-size:29px}.gallery-stage img{height:280px}.product-title{font-size:25px}.purchase-card{padding:20px}.detail-section>h2{font-size:21px}.detail-nav{gap:17px}.detail-nav a{font-size:12px}.info-card{padding:17px}.learning-panel{padding:18px}.learning-heading h2{font-size:18px}.lesson summary{font-size:12px}.upload-section{padding:12px}.upload-heading{align-items:flex-start}.upload-button{font-size:12px!important;padding:8px 10px}.uploaded-item{gap:7px;flex-wrap:wrap}.uploaded-item img,.uploaded-item video{width:66px;height:48px}.editor-save{bottom:-22px;flex-wrap:wrap}.editor-save span{font-size:11px}.package-panel dl>div{grid-template-columns:90px 1fr}}
@media(prefers-reduced-motion:reduce){.carousel-track{transition:none!important}}
.image-adjuster{margin-top:20px;padding:20px;border:1px solid #ffcaa9;border-radius:12px;background:#fffaf7}.image-adjuster h4{margin:0;font-size:17px}.adjust-stage{display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(#e8e8e8 0% 25%,#f5f5f5 0% 50%) 0/20px 20px;border:1px solid #e4e4e4;border-radius:8px;overflow:hidden;min-height:180px;padding:12px}.adjust-stage canvas{display:block;max-width:100%;max-height:440px;width:auto;height:auto;cursor:grab;touch-action:none;box-shadow:0 3px 16px #0002}.adjust-stage canvas:active{cursor:grabbing}.adjust-stage canvas:focus-visible{outline:2px solid #ff7025}.adjust-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:20px 0}.adjust-controls label{display:block;font-size:13px;color:#555}.adjust-controls output{float:right;color:#e86a25;font-variant-numeric:tabular-nums}.adjust-controls input,.adjust-controls select{display:block;width:100%;margin-top:9px;accent-color:#ff7025}.adjust-controls input[type=number],.adjust-controls select{padding:9px;background:white;border:1px solid #ddd;border-radius:6px}.adjust-actions{display:flex;gap:8px;flex-wrap:wrap}.adjust-actions button{border:1px solid #eed7c9;background:white;border-radius:6px;padding:9px 12px;font-size:12px}.adjust-actions .primary{background:#ff7025;color:white;border-color:#ff7025;margin-left:auto}.adjust-size{font-variant-numeric:tabular-nums}.image-adjuster button:disabled{opacity:.55;cursor:wait}@media(max-width:600px){.image-adjuster{padding:12px}.adjust-controls{grid-template-columns:1fr}.adjust-stage{padding:6px}.adjust-actions .primary{margin-left:0}}
/* The editor scrolls only its body, keeping both actions continuously visible. */
dialog:has(.content-editor){overflow:hidden;max-height:90dvh}dialog:has(.content-editor) .modal-inner{padding:0}.content-editor{display:flex;flex-direction:column;height:90dvh;max-height:90dvh;overflow:hidden}.content-editor>.modal-head{flex:none;margin:0;padding:20px 28px;border-bottom:1px solid #eee;background:white;z-index:3}.content-editor>.modal-head .close{flex:none;width:36px;height:36px}.editor-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 28px;scroll-padding:20px}.content-editor>.editor-save{position:static;flex:none;margin:0;padding:16px 28px;background:white;border-top:1px solid #eee;box-shadow:0 -6px 20px #00000005;z-index:3;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.editor-save .error{color:#d64b24;font-size:12px}.editor-save .error:empty{display:none}#catalog{overflow-anchor:none}@media(max-width:600px){.content-editor>.modal-head{padding:14px 18px}.content-editor>.modal-head h2{font-size:18px}.editor-scroll{padding:18px}.content-editor>.editor-save{padding:12px 18px;gap:8px}.content-editor>.editor-save span{font-size:11px}}
/* Each placement keeps its own frame: detail uses the complete source, cards their own composition. */
.product-page .gallery-stage img{width:100%;height:clamp(360px,55vh,650px);object-fit:contain;object-position:center;max-height:none}.gallery-stage video{display:block;width:100%;height:clamp(360px,55vh,650px);object-fit:contain;background:#151515}.gallery-thumbs img{object-fit:contain}.video-thumb{display:grid;place-items:center;height:100%;font-size:11px;color:#f16a2c;background:#fff3eb;border-radius:4px}.cover img{object-fit:contain;object-position:center}.product:hover .cover img{transform:none}.cover{background:#f5f5f5}.expanded-image{object-fit:contain!important;height:auto!important;max-width:100%}.learning-panel[hidden]{display:none}

/* Storefront thumbnails fill the whole card frame. Detail images remain contained. */
.product .cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.product .cover img{object-position:center top}
.saved-card-preview{margin-top:16px;padding-top:14px;border-top:1px solid #eee}.saved-card-preview strong{font-size:13px}.saved-card-preview .cover{width:min(100%,300px);margin:12px 0;border-radius:8px;aspect-ratio:1.37}.saved-card-preview .cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}.saved-card-preview .cover:after{display:none}.saved-card-preview small{font-size:12px;color:#999}

/* The detail viewer fills the available content area and its media frame. */
.product-page{max-width:none;width:100%}.product-hero{grid-template-columns:minmax(0,1fr) minmax(280px,360px)}.product-page .gallery-stage{aspect-ratio:4/3}.product-page .gallery-stage img,.product-page .gallery-stage video{display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center top}.gallery-thumbs .video-thumb{position:relative;display:block;overflow:hidden;background:#222}.gallery-thumbs .video-thumb img{width:100%;height:100%;object-fit:cover;filter:brightness(.55)}.gallery-thumbs .video-thumb>span{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:12px}.gallery-thumbs button{position:relative}@media(max-width:900px){.product-hero{grid-template-columns:1fr}}
.product-page .gallery-stage img,.product-page .gallery-stage video{object-position:center}
/* Reference-style detail layout: centered canvas with a compact purchase panel. */
.product-page{max-width:1160px;width:100%;margin:8px auto 50px}.product-title{font-size:32px;line-height:1.35;margin:12px 0}.product-summary{font-size:13px;max-width:100%;line-height:1.8}.product-badges{margin:16px 0 22px}.product-hero{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:28px}.product-gallery{border:1px solid #eee;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 10px 28px #00000005}.product-page .gallery-stage{aspect-ratio:4/3;border:0;border-radius:0;background:#0d0e10}.product-page .gallery-stage video{object-fit:contain;background:#0d0e10}.gallery-thumbs{padding:0 12px;margin:12px 0;gap:9px}.gallery-thumbs button{width:76px;height:56px}.gallery-caption{display:flex;justify-content:space-between;gap:16px;padding:0 14px 14px;color:#888;font-size:11px}.gallery-caption>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-caption>span:last-child{flex:none;font-size:10px;letter-spacing:1px}.preview-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:#17191bd9;color:white;font-size:25px;box-shadow:0 8px 24px #0003}.purchase-card{padding:25px}.purchase-card h2{font-size:23px}.purchase-price{font-size:30px}.purchase-card ul{padding:10px 0}.uploaded-item{flex-wrap:wrap}.media-name-edit{flex-basis:100%!important;display:flex;gap:10px}.media-name-edit[hidden]{display:none}.media-name-edit input{flex:1;min-width:0}.media-name-edit button{color:#f16a2c}@media(max-width:900px){.product-hero{grid-template-columns:1fr}.product-title{font-size:26px}}@media(min-width:1600px){.product-page{max-width:1160px}}

/* Thumbnails mirror the 4:3 stage framing; video previews use actual decoded frames. */
.product-page .gallery-thumbs{display:flex;align-items:flex-start;overflow-x:auto;overflow-y:hidden;padding:4px 12px;margin:8px 0;min-height:80px}.product-page .gallery-thumbs button{flex:0 0 96px;width:96px;height:72px;aspect-ratio:4/3;padding:0;border:0;border-radius:6px;overflow:hidden;background:#0d0e10}.product-page .gallery-thumbs button.selected{outline:2px solid #ff6a28;outline-offset:2px}.product-page .gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.product-page .gallery-thumbs .video-thumb{width:100%;height:100%;border-radius:0}.product-page .gallery-thumbs video{display:block;width:100%;height:100%;object-fit:contain;background:#0d0e10;pointer-events:none}.product-page .gallery-thumbs .video-thumb>span{inset:auto 3px 3px auto;padding:2px 4px;border-radius:3px;background:#0009;font-size:10px;pointer-events:none}

.visual-upload-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.admin-gallery-preview{max-width:640px!important;margin:15px auto!important}.admin-gallery-preview .gallery-stage{display:block;width:100%;position:relative;overflow:hidden;padding:0}.selected-media-actions{gap:12px}.selected-media-actions button{color:#e96629}.admin-card-settings{border-top:1px solid #eee;margin-top:18px;padding-top:18px}.admin-card-settings summary{cursor:pointer;font-size:14px}.admin-card-settings .saved-card-preview{margin-top:14px}.admin-card-settings button{padding:10px;color:#e96629}

@media(max-height:800px){.admin-gallery-preview{max-width:360px!important}}

.product-page .description-grid{grid-template-columns:minmax(0,1fr)}

/* Keep uploaded original artwork fully visible in cards and previews. */
.product .cover img[src$='?display=cover'],.product-page .gallery-stage img,.admin-gallery-preview .gallery-stage img{object-fit:contain;object-position:center;background:#f4f5f7}
.product:has(.cover img[src$='?display=cover']):hover .cover img{transform:none}
.product .cover:has(img[src$='?display=cover']):after{display:none}

.filters{flex-wrap:wrap}

.gallery-auto{padding:4px 8px;font-size:12px;flex:none}.content-editor [data-description-mode][hidden]{display:none}.overview.prose table{border-collapse:collapse}.overview.prose td,.overview.prose th{padding:6px 10px;border:1px solid #ddd}.overview.prose{overflow-wrap:anywhere;overflow-x:auto}

.image-dimensions{color:#666;font-size:12px;margin:.4em 0}.gallery-stage .gallery-image-dimensions{position:absolute;right:8px;bottom:8px;background:#20242ddd;color:white;padding:4px 8px;border-radius:5px}.gallery-image-dimensions:empty{display:none}.media-image-info{display:grid;justify-items:start}

.gallery-framing{padding:0 14px 14px}.gallery-framing-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:10px}.gallery-framing .image-adjuster{margin-top:10px}.gallery-framing .adjust-stage canvas{max-height:300px}

.admin-gallery-preview .is-framing .gallery-thumbs,.admin-gallery-preview .is-framing .gallery-caption,.admin-gallery-preview .is-framing .gallery-framing-bar{display:none}
.admin-gallery-preview .is-framing .gallery-stage>canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;touch-action:none;cursor:grab;background:#f4f5f7}
.gallery-framing .compact-adjuster{margin:0;padding:8px 0 0;border:0;background:transparent}
.compact-adjuster>.note:not(.adjust-size),.compact-adjuster .upload-heading h4,.compact-adjuster .error:empty{display:none}
.compact-adjuster .upload-heading{justify-content:flex-end;margin:0}
.compact-adjuster .upload-heading button{padding:2px 4px;font-size:12px}
.compact-adjuster .adjust-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;margin:0}
.compact-adjuster .adjust-controls label{gap:2px;font-size:12px}
.compact-adjuster .adjust-controls input,.compact-adjuster .adjust-controls select{padding:4px 6px}
.compact-adjuster .adjust-actions{gap:4px;margin:6px 0 0}
.compact-adjuster .adjust-actions button{padding:4px 6px;font-size:12px}
.compact-adjuster .adjust-size{padding:0;margin:4px 0 0;background:transparent;font-size:11px}

.admin-gallery-preview .is-framing .gallery-thumbs:has(button:nth-child(2)){display:flex;min-height:0;margin:4px 0}.admin-gallery-preview .is-framing .gallery-thumbs button{width:48px;height:34px;flex-basis:48px}.admin-gallery-preview .gallery-stage>canvas[hidden],.compact-adjuster>.upload-heading{display:none}.gallery-framing{padding-bottom:8px}
.admin-gallery-preview .is-framing .gallery-stage>canvas[hidden]{display:block;opacity:0}
