/* Keep the enlarged gallery legible on desktop and touch screens. */
#design-dialog{width:min(1120px,calc(100vw - 40px));max-width:none;max-height:92dvh;padding:0;background:#0d0e10}
#design-dialog .design-dialog-inner{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)}
#design-dialog .design-dialog-image{background:#111315;padding:22px;gap:12px}
#design-dialog .design-dialog-copy{padding:32px 28px;min-width:0}
#design-dialog .design-dialog-copy h2{font-size:clamp(28px,3vw,42px);line-height:1.12;overflow-wrap:normal;word-break:normal}
#design-dialog .detail-visual-frame{width:100%;margin:0 auto;aspect-ratio:2/3;max-height:68dvh;background:#090b0c;touch-action:pan-y}
#design-dialog .detail-visual-frame img{max-height:none;object-fit:contain}
#design-dialog .detail-visual-frame.verified-pair{aspect-ratio:4/3}
#design-dialog .detail-gallery-slots{grid-template-columns:repeat(3,minmax(0,1fr))}
#design-dialog .gallery-slot{min-height:60px;padding:10px}
#design-dialog .gallery-slot strong{font-size:12px}
#design-dialog .gallery-slot small{display:none}
.detail-swipe-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.detail-swipe-nav button{background:#d8ff27;color:#090b0c;border:0;min-height:44px;padding:10px 18px;font-weight:800}
.detail-swipe-nav button:disabled{opacity:.35;cursor:default}
.detail-swipe-nav span{font-size:14px;font-weight:700;text-align:center}
#detail-model-options{display:none!important}
@media(max-width:700px){
 #design-dialog{width:100vw;max-height:100dvh;height:100dvh;margin:0;border:0}
 #design-dialog .design-dialog-inner{grid-template-columns:minmax(0,1fr)}
 #design-dialog .design-dialog-image{padding:12px;gap:10px}
 #design-dialog .detail-visual-frame{max-height:65dvh;aspect-ratio:2/3}
 #design-dialog .design-dialog-copy{padding:18px}
 #design-dialog .design-dialog-copy h2{font-size:30px}
 #design-dialog .detail-gallery-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
 #design-dialog .design-dialog-close{position:sticky;top:8px;float:right;z-index:10;margin-right:8px;margin-bottom:-44px}
}

/* Constrain every grid child so swipe tracks cannot widen the mobile page. */
html,body{max-width:100%;overflow-x:clip}
.shop-shell,.shop-main,.preview-grid,.design-card,.card-art,.garment-preview,.product-gallery,.product-gallery-track{min-width:0;max-width:100%}
.product-gallery-slide img{object-position:center center!important}
.product-gallery-slide figcaption{top:39px;left:8px;max-width:calc(100% - 16px)}
@media(max-width:700px){
 .shop-shell{grid-template-columns:minmax(0,1fr)!important}
 .header{width:100%;gap:12px;padding-inline:16px}
 .header-actions{min-width:0;margin-left:auto}
 .result-bar{flex-wrap:wrap;overflow-wrap:anywhere}
 .mobile-nav{max-width:100%;left:0;right:0}
 .design-card .card-art{width:100%;margin-inline:auto}
}

/* Secret Circle stockist campaign — original vector logo, clean monochrome. */
.secret-circle-ad{background:#000;color:#fff;display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);align-items:center;gap:clamp(24px,5vw,80px);padding:clamp(32px,6vw,96px);border-block:1px solid #292929;scroll-margin-top:100px}
.secret-circle-mark{max-width:440px;width:100%;margin:auto}.secret-circle-mark img{display:block;width:100%;height:auto;object-fit:contain}
.secret-circle-copy{max-width:720px}.secret-circle-kicker{font-size:11px;letter-spacing:.25em;color:#bdbdbd;font-weight:700;margin:0 0 28px}.secret-circle-copy h2{font-family:Arial,Helvetica,sans-serif;font-size:clamp(26px,3.4vw,54px);line-height:1.14;font-weight:600;letter-spacing:-.035em;margin:0}.secret-circle-copy h2 span{display:block;font-weight:800}.secret-circle-tagline{font-family:Arial,Helvetica,sans-serif;font-size:clamp(12px,1.35vw,20px);letter-spacing:.18em;margin:28px 0 0}.secret-circle-note{color:#aaa;font-size:13px;line-height:1.7;margin:22px 0 0}
@media(max-width:640px){.secret-circle-ad{grid-template-columns:1fr;text-align:center;padding:36px 24px 44px;gap:28px}.secret-circle-mark{max-width:250px}.secret-circle-copy h2{font-size:30px}.secret-circle-kicker{margin-bottom:20px}.secret-circle-tagline{line-height:1.6}}

/* Mobile browsing: fixed navigation, scrollable products and photographs. */
.mobile-collection-select,.product-browse-nav{display:none}
@media(max-width:700px){
 .header{height:66px;position:sticky;top:0;z-index:50;padding:6px 16px}.header .brand,.header .brand img{width:62px;height:54px}.header .bag-button{padding:11px 14px;min-height:44px}.header .nav,.header .edgelabel{display:none}
 .range-rail{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.range-rail a{font-size:11px;min-height:48px}
 .shop-browse-header{padding:10px 12px}.browse-heading{display:none}.garment-scroller{overflow:visible}.garment-controls{display:flex;width:100%;gap:8px}.garment-controls button{flex:1;min-width:0;min-height:44px}
 .mobile-collections-title,.mobile-collections,.mobile-view-all,.mobile-current-filter{display:none!important}.mobile-collection-select{display:grid;gap:6px;font-size:11px;font-weight:800;letter-spacing:.08em}.mobile-collection-select select{width:100%;min-height:46px;font-size:16px}.mobile-browse-bottom{margin-top:10px}.mobile-searchline input{font-size:16px}
 .filter-panel{display:none!important}.result-bar>span:last-child{display:none}.result-bar{font-size:11px;margin-bottom:12px}
 #preview-grid,.live-grid,.featured-grid,.model-spotlight-grid{display:flex!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;gap:12px;padding-bottom:10px;scrollbar-width:thin;scrollbar-color:#d8ff27 #25252a}
 #preview-grid>.design-card,.live-grid>.live-card,.featured-grid>.featured-card,.model-spotlight-grid>.model-spotlight-card{flex:0 0 90%;width:90%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;transform:none}
 #preview-grid>.design-card[hidden]{display:none!important}
 #preview-grid .card-art{aspect-ratio:2/3;max-height:64svh}#preview-grid .card-info{padding:12px}#preview-grid .card-info h3{font-size:26px;line-height:1.12;margin:8px 0;min-height:0}#preview-grid .card-info>p{font-size:10px;line-height:1.6}.catalogue-status{display:none}.colour-controls{gap:6px}.colour-chip{min-height:40px;font-size:11px}.design-share{font-size:11px;padding:10px 12px}
 .product-browse-nav{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:8px 0 18px}.product-browse-nav button{width:48px;height:44px;border:1px solid #47484a;background:#d8ff27;color:#111;font-size:24px}.product-browse-nav button:disabled{opacity:.35}.product-browse-nav span{font-size:11px;font-weight:800;letter-spacing:.08em}
 #more-editorial{display:none!important}.original-photo-badge{display:none}.card-index{top:8px!important;left:8px!important;font-size:11px!important;padding:5px 7px!important}.product-gallery-slide figcaption{top:42px;font-size:9px}.product-gallery-nav{bottom:8px}.product-gallery-nav button{width:38px;height:38px;min-height:38px}
 .mobile-dock{min-height:56px;height:auto;padding-bottom:env(safe-area-inset-bottom);grid-template-columns:1fr 1.3fr 1fr}.mobile-dock>a,.mobile-dock>button{min-height:56px;font-size:11px;letter-spacing:.03em;padding:8px 4px}.mobile-dock>*>span:first-child{display:none}body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
 #design-dialog .detail-gallery-slots{display:flex;overflow-x:auto;gap:8px}#design-dialog .gallery-slot{flex:0 0 140px;min-height:44px}.detail-swipe-nav button{font-size:11px}
}

/* Product-photo QA: never stretch a garment, torso, sleeve or source artwork to fill a different ratio. */
.card-art .garment-preview img,#design-dialog .detail-visual-frame img{
 object-fit:contain!important;object-position:center center!important;
 width:100%!important;height:100%!important;max-width:100%!important;
}
.product-gallery-slide{overflow:hidden;padding:clamp(8px,2.4%,18px);align-items:center;justify-content:center}
.product-gallery-slide img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important}
.product-gallery-slide.missing-view{background:radial-gradient(circle at 50% 45%,#25291e 0,#121514 70%)}
.product-gallery-slide .photo-awaiting,.remake-pending-card .photo-awaiting{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:25px;max-width:100%;height:100%;background:transparent}
.product-gallery-slide .photo-awaiting strong,.remake-pending-card .photo-awaiting strong{font:900 clamp(16px,2.4vw,29px)/1.15 'Barlow Condensed',Impact,sans-serif;max-width:30ch}
.product-gallery-slide .photo-awaiting span,.remake-pending-card .photo-awaiting span{color:#d8ff27;font:900 11px/1.45 Arial,sans-serif;letter-spacing:.09em}
.product-gallery-slide .photo-awaiting small,.remake-pending-card .photo-awaiting small{font-size:10px;max-width:28ch;color:#aaa}
.collection-divider{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#181a18;border-left:4px solid #d8ff27;padding:13px 16px;margin-top:12px}
.collection-divider strong{font:900 clamp(18px,2vw,30px)/1 'Barlow Condensed',Impact,sans-serif;color:#fff}
.collection-divider span{font:800 9px/1.4 Arial,sans-serif;color:#aba}
@media(max-width:700px){.collection-divider{display:none}.product-gallery-slide{padding:10px}}

/* Exact source artwork is cropped as a design display, never labelled a Printful mockup.
   Coordinates refer to the existing original 860 × 620 black/white product contact sheet. */
.source-mockup-crop{position:relative;isolation:isolate;overflow:hidden;display:block!important;aspect-ratio:395/465;width:min(100%,590px);height:auto;max-height:100%;margin:auto;background:#0c100e}
#preview-grid .source-mockup-crop img,#design-dialog .source-mockup-crop img,.remake-pending-card .source-mockup-crop img{
 position:absolute!important;display:block!important;width:217.72%!important;height:auto!important;max-width:none!important;min-height:0!important;top:-16.13%!important;left:-6.33%!important;object-fit:unset!important;object-position:initial!important;transform:none!important;
}
#preview-grid .source-mockup-white img,#design-dialog .source-mockup-white img{left:-111.4%!important}
#design-dialog .detail-visual-frame .source-mockup-crop{height:100%;max-height:100%;width:auto;max-width:100%;aspect-ratio:395/465}
.product-gallery-slide .source-mockup-crop{flex:none;max-width:100%;max-height:100%}
.product-gallery-slide .source-mockup-crop img{max-width:none!important;object-fit:unset!important}
.remake-pending-card .garment-preview{display:flex;align-items:center;justify-content:center}
.remake-pending-card .source-mockup-crop{width:min(100%,590px)}

/* User-approved original-logo-only fallback, never a claimed product mockup. */
.brand-only-preview{width:100%;height:100%;display:grid;place-items:center;padding:14%;background:#0a0b0d}
.brand-only-preview img{width:min(100%,340px)!important;height:auto!important;max-width:100%!important;object-fit:contain!important;position:static!important;transform:none!important}

/* Existing original logos only; these are plainly labelled accessory concepts, not supplier garment photos. */
.logo-only-range{display:flex!important;align-items:center;justify-content:center;padding:15%!important;background:radial-gradient(circle at center,#242a1b,#08090b 72%);}
.logo-only-range img{position:static!important;width:100%!important;height:100%!important;max-width:350px!important;object-fit:contain!important;transform:none!important;filter:none!important}
.secret-circle-preview.logo-only-range{background:radial-gradient(circle at center,#322616,#080706 70%)}
