/* Products and their contact shadows remain inside the photographed scene. */
.shelf-rail[data-scene="winter"] .boots-shelf .object {
  left: 14%; width: 76%; bottom: 29%; height: 66%;
}
.shelf-rail[data-scene="boots"] .incoming-shelf .object {
  left: 7%; width: 86%; bottom: 27%; height: 64%;
}
.shelf-rail[data-scene="winter"] .incoming-shelf .object {
  left: 7%; width: 86%; bottom: 27%; height: 64%;
}
.shelf-rail[data-scene="sneakers"] .incoming-shelf .object,
.shelf-rail[data-scene="bags"] .incoming-shelf .object {
  left: 8%; width: 84%; bottom: 24%; height: 68%;
}
.in-category #shelf-rail.segmented-scene {
  position: relative;
  background-image: url('assets/scene/continuous-shelf.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.in-category #shelf-rail.segmented-scene::before,
.in-category #shelf-rail.segmented-scene::after { display: none; }
.in-category #shelf-rail .rail-photo-set {
  position: absolute;
  left: var(--scene-gutter,0px);
  top: 0;
  width: var(--rail-world-width);
  height: var(--scene-unit);
  pointer-events: none;
  z-index: 0;
}
.in-category #shelf-rail .rail-photo-set img {
  position: absolute;
  left: calc(var(--scene-unit) * var(--segment-start));
  top: 0;
  display: block;
  width: calc(var(--scene-unit) * var(--segment-cells));
  height: var(--scene-unit);
  object-fit: fill;
}
.in-category #shelf-rail .rail-photo-set img.seam-blend {
  left: calc(var(--scene-unit) * var(--segment-start) - var(--scene-overlap));
  width: calc(var(--scene-unit) * var(--segment-cells) + var(--scene-overlap));
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 var(--scene-overlap));
  mask-image: linear-gradient(90deg,transparent,#000 var(--scene-overlap));
}
.in-category #shelf-rail.segmented-scene .shelf { z-index: 1; }
.in-category #shelf-rail.segmented-scene .shelf[data-id] { background: transparent; }
.in-category #shelf-rail.segmented-scene[data-scene="bags"] .shelf { flex: 0 0 var(--scene-unit); width: var(--scene-unit); }
.in-category #shelf-rail.segmented-scene[data-scene="bags"] .rail-photo-set,
.in-category #shelf-rail.segmented-scene[data-scene="sneakers"] .rail-photo-set {
  -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 50px,#000 calc(100% - 50px),transparent 100%);
  mask-image: linear-gradient(90deg,transparent 0,#000 50px,#000 calc(100% - 50px),transparent 100%);
}
.category-grid .category-door[data-category="winter"] .category-door-copy {
  top: 83%; bottom: auto; transform: translateY(-50%);
}
/* A neutral photo background for all boot angles; no decorative pedestal. */
body.in-category:has(#shelf-rail[data-scene="dress-shoes"]) { height:auto; overflow-y:auto; }
.in-category:has(#shelf-rail[data-scene="dress-shoes"]) #boutique { height:auto; min-height:100svh; overflow:visible; }
.in-category #category-view:has(#shelf-rail[data-scene="dress-shoes"]) { height:auto; min-height:0; grid-template-rows:auto auto auto; overflow:visible; }
.in-category #shelf-rail[data-scene="dress-shoes"] { height:50vw; overscroll-behavior-y:auto; }
@media (max-width: 600px) {
  body.in-category { height: auto; overflow-y: auto; }
  .in-category #boutique { height: auto; min-height: 100svh; overflow: visible; }
  .in-category #category-view:has(#shelf-rail.segmented-scene) {
    height: auto; min-height: 0; grid-template-rows: auto auto auto; overflow: visible;
  }
  .in-category #shelf-rail.segmented-scene { height: 100vw; }
}
.product-visual:has(.detail-image[src*="products/winter/"]) .detail-base { display: none; }
.product-visual:has(.detail-image[src*="products/winter/"]) { background: #f1ece3; }
.product-visual .detail-image[src*="products/winter/"] { filter: none; }
@media (max-width:600px) {
  .in-category #category-view {
    grid-template-columns: minmax(0,1fr);
    width: 100%;
  }
  .in-category #category-view > * { min-width: 0; }
  .in-category #category-view .category-tabs { max-width: 100%; }
  .in-category #category-view:has(#shelf-rail[data-scene="winter"]),
  .in-category #category-view:has(#shelf-rail[data-scene="boots"]) {
    height:auto; min-height:0; grid-template-rows:auto auto auto; overflow:visible;
  }
  .in-category #shelf-rail[data-scene="winter"],
  .in-category #shelf-rail[data-scene="boots"] { height:100vw; }
}

.in-category #shelf-rail.photographed-scene .rail-photo-set {mask-image:none;-webkit-mask-image:none;}
.in-category #shelf-rail.photographed-scene .shelf > .object-label {top:79%;bottom:auto;}
.in-category #shelf-rail.photographed-scene .rail-photo-set > img.photo-edge-fade {mask-image:linear-gradient(90deg,transparent,#000 calc(var(--scene-unit) * .065));-webkit-mask-image:linear-gradient(90deg,transparent,#000 calc(var(--scene-unit) * .065));}
.scene-join-edge {position:absolute;top:0;width:calc(var(--scene-unit) * .065);height:var(--scene-unit);overflow:hidden;}
.in-category #shelf-rail .rail-photo-set .scene-join-edge img {left:0;transform:scaleX(-1);height:var(--scene-unit);max-width:none;}

/* One uninterrupted photograph per gender; cover crops only empty wall, never stretches shoes. */
.in-category #shelf-rail.panoramic-scene .rail-photo-set > img {object-fit:cover;object-position:left bottom;}
.in-category #shelf-rail[data-scene="sneakers-women"] .object {left:6%;width:88%;height:68%;bottom:26%;}
.in-category #shelf-rail[data-scene="sneakers-women"] .shelf > .object-label {top:75%;}
.category-grid .category-door[data-category="sneakers"],.category-grid .category-door[data-category="sneakers-women"] {overflow:hidden;background-image:none;}
.category-grid .category-door[data-category="sneakers"] .category-scene {left:0;top:auto;bottom:0;width:150%;height:100%;max-width:none;object-fit:fill;}
.category-grid .category-door[data-category="sneakers-women"] .category-scene {left:0;top:auto;bottom:0;width:250%;height:166.6667%;max-width:none;object-fit:fill;}
@media(max-width:600px){
 .category-grid .category-door[data-category="sneakers"] .category-scene {width:300%;}
 .category-grid .category-door[data-category="sneakers-women"] .category-scene {width:500%;}
}
/* All categories share one viewport and horizontal navigation. */
body.in-category{height:100svh;overflow:hidden}
.in-category #boutique{height:100svh!important;min-height:0!important;overflow:hidden!important}
.in-category #category-view{height:100svh!important;min-height:0!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}
.in-category #shelf-rail{height:100%!important;min-height:0;overscroll-behavior:contain}
/* Match the reference shelf framing without stretching the photographed products. */
.in-category #shelf-rail[data-scene="sneakers-women"] .rail-photo-set > img{object-position:left 92%}
.in-category #shelf-rail[data-scene="sneakers-women"] .shelf > .object-label{top:81%;bottom:auto}
.in-category #shelf-rail[data-scene="dress-shoes"]{padding-inline:0}
.in-category #shelf-rail[data-scene="dress-shoes"] .rail-photo-set{left:0;width:max(100%,var(--rail-world-width));overflow:hidden}
.in-category #shelf-rail[data-scene="dress-shoes"] .rail-photo-set > img{left:50%;transform:translateX(-50%);width:max(100%,calc(var(--scene-unit)*3));height:100%;object-fit:cover;object-position:center bottom}
.in-category #shelf-rail[data-scene="dress-shoes"] .shelf{flex-basis:max(50%,var(--scene-unit));width:max(50%,var(--scene-unit))}
.in-category #shelf-rail[data-scene="dress-shoes"] .shelf > .object-label{top:81%;bottom:auto}
.category-grid .category-door[data-category="sneakers-women"] .category-scene{height:250%;bottom:-12%;}
body.in-category{height:100svh!important;overflow:hidden!important}
@media(max-width:600px){
 .in-category #category-view{grid-template-rows:minmax(244px,1fr) min(100vw,calc(100svh - 312px)) 68px!important}
 .in-category .category-heading{display:flex;flex-direction:column;justify-content:flex-end}
 .in-category .category-heading>a{align-self:flex-start}
 .in-category #shelf-rail{align-self:end}
}
/* Use full-detail photographed models, not an enlarged five-product thumbnail. */
.in-category #shelf-rail[data-scene="sneakers-women"] .rail-photo-set > img{object-fit:fill;object-position:left top}
.category-grid .category-door[data-category="sneakers-women"] .category-scene{width:200%;height:100%;bottom:0;object-fit:fill}
/* Continuous architecture behind detailed shoe photographs; feather only empty margins. */
.in-category #shelf-rail[data-scene="sneakers-women"]{background-image:url('assets/scene/batch-unified-empty.webp');background-size:calc(var(--scene-unit)*2) var(--scene-unit);background-position:left bottom;background-repeat:repeat-x;background-attachment:local}
.in-category #shelf-rail[data-scene="sneakers-women"] .scene-join-edge{display:none}
.in-category #shelf-rail[data-scene="sneakers-women"] .rail-photo-set > img{--visible-end:100%;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 calc(var(--visible-end) - 5%),transparent var(--visible-end)),linear-gradient(180deg,transparent,#000 14%,#000 71%,transparent 78%)!important;mask-composite:intersect;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 calc(var(--visible-end) - 5%),transparent var(--visible-end)),linear-gradient(180deg,transparent,#000 14%,#000 71%,transparent 78%)!important;-webkit-mask-composite:source-in}
.in-category #shelf-rail[data-scene="sneakers-women"] .rail-photo-set > img:first-child{--visible-end:50%}
.in-category #shelf-rail[data-scene="sneakers-women"]{background-size:var(--rail-world-width) var(--scene-unit);background-repeat:no-repeat}
/* Door uses a true 2:1 photograph of two women's models, at natural proportions. */
.category-grid .category-door[data-category="sneakers-women"] .category-scene{left:0;top:auto;bottom:0;width:100%;height:auto;object-fit:contain}
@media(max-width:600px){.category-grid .category-door[data-category="sneakers-women"] .category-scene{width:200%;height:auto}}

/* Home doors: three models in a row where the category has them (3:1 photograph, natural proportions). */
.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="winter"],[data-category="boots"],[data-category="bags"]){overflow:hidden}
.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="winter"],[data-category="boots"],[data-category="bags"]) .category-scene{left:0;top:0;bottom:auto;width:100%;height:100%;max-width:none;object-fit:cover;object-position:left bottom}
@media(max-width:600px){.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="winter"],[data-category="boots"],[data-category="bags"]) .category-scene{width:300%}}
/* Three-model doors are 3:1: caption sits in the middle of the stone front edge, like the sandals door. */
@media(min-width:601px){
.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="winter"],[data-category="boots"],[data-category="bags"]) .category-door-copy{top:83%;bottom:auto;transform:translateY(-50%)}
.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="winter"],[data-category="boots"],[data-category="bags"]) .category-door-copy>div:first-child{line-height:1}
.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="winter"],[data-category="boots"],[data-category="bags"]) .category-door-copy h2{font-size:clamp(18px,2.3vw,32px);line-height:1;margin-top:2px}
.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="winter"],[data-category="boots"],[data-category="bags"]) .category-door-count{font-size:clamp(12px,1.1vw,16px)}
.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="winter"],[data-category="boots"],[data-category="bags"]) .category-door-count svg{width:clamp(18px,2vw,24px);height:clamp(18px,2vw,24px)}
}
/* Phone: same wide rows as desktop (all models visible), caption on one line inside the stone front edge. */
@media(max-width:600px){
.category-grid .category-door.shelf:not([data-category="loafers"]){aspect-ratio:var(--scene-count)/1;overflow:hidden}
.category-grid .category-door:not([data-category="loafers"]) .category-scene{left:0;top:0;bottom:auto;width:100%;height:100%;max-width:none;object-fit:cover;object-position:left bottom}
.category-grid .category-door:not([data-category="loafers"]) .category-door-copy{top:auto;bottom:var(--m-caption,2.2%);left:4%;right:4%;transform:none;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.category-grid .category-door:not([data-category="loafers"]) .category-door-copy>div:first-child{display:flex;align-items:baseline;gap:6px;line-height:1}
.category-grid .category-door:not([data-category="loafers"]) .category-door-copy span{display:none}
.category-grid .category-door:not([data-category="loafers"]) .category-door-copy h2{font-size:15px;line-height:1;margin:0}
.category-grid .category-door:not([data-category="loafers"]) .category-door-count{font-size:10px;gap:4px}
.category-grid .category-door:not([data-category="loafers"]) .category-door-count svg{width:12px;height:12px}
}
@media(max-width:600px){.category-grid .category-door[data-category="dress-shoes"] .category-scene{object-position:center bottom}}
/* Phone comparison: two pairs per door (first two of the row) instead of three. */
@media(max-width:600px){
.category-grid .category-door.shelf:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="sandals"],[data-category="winter"],[data-category="boots"]){aspect-ratio:2/1}
.category-grid .category-door:is([data-category="sneakers"],[data-category="sneakers-women"],[data-category="sandals"],[data-category="winter"],[data-category="boots"]) .category-scene{width:calc(var(--scene-count)*50%);height:100%;object-fit:fill}
}
@media(max-width:600px){
.category-grid .category-door.shelf[data-category="winter"]{aspect-ratio:1.838/1}.category-grid .category-door[data-category="winter"] .category-scene{width:137%}
.category-grid .category-door.shelf[data-category="boots"]{aspect-ratio:1.804/1}.category-grid .category-door[data-category="boots"] .category-scene{width:134.8%}
.category-grid .category-door.shelf[data-category="sneakers-women"]{aspect-ratio:1.932/1}.category-grid .category-door[data-category="sneakers-women"] .category-scene{width:145.7%}
}
@media(max-width:600px){
.category-grid .category-door.shelf[data-category="winter"]{aspect-ratio:1.697/1}.category-grid .category-door[data-category="winter"] .category-scene{width:148.3%}
.category-grid .category-door.shelf[data-category="boots"]{aspect-ratio:1.611/1}.category-grid .category-door[data-category="boots"] .category-scene{width:150.9%}
.category-grid .category-door.shelf[data-category="sneakers-women"]{aspect-ratio:1.891/1}.category-grid .category-door[data-category="sneakers-women"] .category-scene{width:149%}
}
/* Phone: both loafers fully in frame (no cropped toe or heel), like the other doors. */
@media(max-width:600px){
.category-grid .category-door.shelf[data-category="loafers"]{height:calc(50vw + 250px)}
.category-grid .category-door[data-category="loafers"] .category-scene{left:0;bottom:0;top:auto;width:100%;height:auto;max-height:none;transform:none;object-fit:contain}
}
@media(max-width:600px){
.category-grid .category-door[data-category="loafers"] .category-door-copy{top:auto;bottom:10px;left:4%;right:4%;transform:none;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.category-grid .category-door[data-category="loafers"] .category-door-copy>div:first-child{display:flex;align-items:baseline;gap:6px;line-height:1}
.category-grid .category-door[data-category="loafers"] .category-door-copy span{display:none}
.category-grid .category-door[data-category="loafers"] .category-door-copy h2{font-size:15px;line-height:1;margin:0}
.category-grid .category-door[data-category="loafers"] .category-door-count{font-size:10px;gap:4px}
.category-grid .category-door[data-category="loafers"] .category-door-count svg{width:12px;height:12px}
}
/* Phone: shorter, lighter haze between the welcome block and the loafers photograph. */
@media(max-width:600px){
#category-home>.welcome{background:linear-gradient(#e7d8c3 0%,#e7d8c3 250px,#e7d8c300 330px)}
.category-grid .category-door[data-category="loafers"]::after{background:linear-gradient(180deg,#eadbc81a 0%,transparent 30%,#b8936014 100%)}
}
