/* The piece view: one product page on the room's own grey. Nothing dims, the sheet is the garment's ground. */
#pv{position:fixed;inset:0;width:100vw;height:100svh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:none;color:var(--pi);overflow:hidden auto;overscroll-behavior:contain;font-size:14px;line-height:19px}
#pv:not([open]){display:none}
#pv::backdrop{background:none}
#pv svg{fill:none;stroke:currentColor;stroke-width:1.2}
.pv-bg{position:fixed;inset:0;background:var(--pr)}
.pv-stage{position:fixed;left:0;top:0;width:58vw;height:100svh;touch-action:pan-y pinch-zoom;perspective:1600px;cursor:grab;user-select:none;-webkit-user-select:none}
.pv-stage.drag{cursor:grabbing}
.pv-card{position:absolute;inset:0;transform-style:preserve-3d;will-change:transform}
.pv-card[hidden]{display:none}
.pv-g{--c:min(106svh,58vw);position:absolute;left:calc(29vw - var(--c)/2);top:calc(50svh - var(--c)*.52);width:var(--c);height:var(--c);transform-origin:50% 6.25%;user-select:none;-webkit-user-drag:none;pointer-events:none}
.pv-panel{position:relative;margin-left:58vw;min-height:100svh;padding:72px 28px 88px 8px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;max-width:calc(58vw + 480px)}
.pv-brand{font-weight:600;font-stretch:75%;letter-spacing:.07em;text-transform:uppercase}
.pv-name{outline:0;font:inherit;font-size:17px;line-height:22px;max-width:30em;margin-top:-8px}
.pv-price{font-size:clamp(88px,15svh,160px);line-height:.9;margin:4px 0 0;padding-bottom:.12em} /* the $ falls below the line */
/* Where the price sits between the cheapest and the dearest, on the same log scale and in the same ramp as the rest of the site. */
.pv-bar{position:relative;width:100%;max-width:440px;height:30px;margin-top:-6px;font-size:11px;line-height:14px;font-variant-numeric:tabular-nums}
.pv-bar::before{content:"";position:absolute;left:0;right:0;top:5px;height:1px;background:currentColor;opacity:.35}
.pv-bar i{position:absolute;left:0;top:3px;height:5px;width:calc(var(--x)*100%);min-width:5px;background:var(--t)}
.pv-bar i::after{content:"";position:absolute;right:-1px;top:-3px;width:2px;height:11px;background:currentColor}
.pv-bar span{position:absolute;bottom:0}
.pv-bar span:last-child{right:0}
.pv-go{display:flex;flex-wrap:wrap;gap:8px;width:100%;max-width:440px}
.pv-go .pv-cmp{flex:1 0 100%;display:flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid currentColor;color:var(--pi);background:none;font-weight:500}
.pv-go a{flex:1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0 14px;background:var(--pi);color:var(--pr);font-weight:600;font-stretch:88%}
.pv-go a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.pv-go svg{width:10px;height:10px;flex:none}
.pv-go a:focus-visible,.pv-x:focus-visible,.pv-nav button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.pv-facts{width:100%;max-width:440px;border-collapse:collapse;margin-top:8px}
.pv-facts tr{border-top:1px solid currentColor}
.pv-facts tr:last-child{border-bottom:1px solid currentColor}
.pv-facts th{font-weight:400;text-align:left;padding:7px 12px 7px 0;white-space:nowrap;vertical-align:top}
.pv-facts td{padding:7px 0;text-align:right;vertical-align:top}
.pv-notes{width:100%;max-width:440px;list-style:none;font-size:13px;line-height:19px}
.pv-notes:empty{display:none}
.pv-notes li::before{content:"\2013\00a0"}
.pv-small{max-width:440px;font-size:12px;line-height:16px;color:var(--pi)}
.pv-x{position:fixed;right:18px;top:12px;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;padding:0 10px;font-weight:600;font-stretch:75%;letter-spacing:.07em;text-transform:uppercase;font-size:13px}
.pv-nav{position:fixed;left:18px;bottom:14px;display:flex;align-items:center;font-variant-numeric:tabular-nums;font-weight:600;font-stretch:75%;letter-spacing:.07em}
.pv-nav button{display:flex;align-items:center;justify-content:center;width:48px;height:44px}
.pv-nav svg{width:18px;height:10px}
@media (max-width:760px){
  /* Phone: the garment first, then brand, name, price and the button, then the details. The sheet scrolls; the nav and close stay put. */
  .pv-stage{position:relative;width:100%;height:calc(100vw*.98);max-height:56svh}
  .pv-g{--c:min(100vw,56svh);left:calc(50% - var(--c)/2);top:0}
  .pv-panel{margin:0;min-height:0;padding:4px 16px 76px;gap:12px;max-width:none}
  .pv-price{font-size:88px}
  .pv-go,.pv-facts,.pv-small,.pv-bar,.pv-notes{max-width:none}
  .pv-x{right:6px;top:4px}
  .pv-nav{left:0;right:0;bottom:0;justify-content:space-between;padding:0 6px;background:var(--pr)}
}

