/* Product page. The photos are a deck of prints standing on the scene: the one in front is the
   photo, the next ones wait behind it, and a change of photo is the front print lifted away.
   Beside the deck one white card holds the whole decision, top to bottom. Under them, panels:
   the specs as answers to four questions (how warm, how weatherproof, how it is powered, how
   large), the store's own words, reviews, more lights. Controls come from ui.css. */

.pdp-page{padding-top:calc(var(--gap) + 72px)}
.pdp{grid-template-columns:minmax(0,1fr) minmax(380px,500px);align-items:start;scroll-margin-top:calc(var(--gap) + 72px)}

/* ---------- any other light: the page stands in the bare room it belongs in, sharp, a little dimmed ---------- */
.has-room .world{background:var(--night) var(--place) 50% 50%/cover no-repeat}

/* ---------- a light that stands in the house: its page opens on the place where it stands ---------- */
/* the first screen is the room itself; the words stand on the side the light is not on, and the
   photos and the buying card begin at the foot of the screen */
.place{display:none}
.has-place .place{position:relative;display:flex;align-items:flex-end;width:calc(100% - 2 * var(--gap));max-width:var(--panel);min-height:calc(100vh - var(--gap) - 164px);min-height:calc(100svh - var(--gap) - 164px);margin:0 auto var(--gap);padding:0 var(--pad) clamp(96px,12.5vh,128px)}
/* the way on: a cue to scroll, at the foot of the place, gone once the page moves */
.has-place .place-cue{position:absolute;left:50%;bottom:clamp(22px,3.4vh,34px);display:flex;align-items:center;gap:12px;margin:0;transform:translateX(-50%);color:var(--on-dark-2);font:500 13.5px/1 var(--f-body);white-space:nowrap;
  text-shadow:0 1px 2px rgba(5,9,18,.9),0 3px 12px rgba(5,9,18,.6);transition:opacity .4s var(--ease-soft)}
.place.moved .place-cue{opacity:0}
.place[data-side="right"]{justify-content:flex-end}
.place-say{display:grid;justify-items:start;min-width:0;max-width:min(560px,40vw)}
.place:not(.in) .place-say{visibility:hidden}   /* set on their side out of sight, so nothing is seen to move */
.place-say > *{opacity:0;transform:translateY(16px)}
.place.in .place-say > *{opacity:1;transform:none;transition:opacity .6s var(--ease-soft),transform .9s var(--ease-out)}
.place.in .place-say > :nth-child(2){transition-delay:.06s}
.place.in .place-say > :nth-child(3){transition-delay:.12s}
.place.in .place-say > :nth-child(4){transition-delay:.18s}
.place.in .place-say > :nth-child(5){transition-delay:.24s}
.place-name,.place-price,.place-note,.place .link-arrow{text-shadow:0 1px 2px rgba(5,9,18,.9),0 3px 12px rgba(5,9,18,.6),0 10px 44px rgba(5,9,18,.62)}
/* the name of the place is a small plate of its own, so it reads on any corner of any room */
.place-where{display:inline-flex;align-items:center;gap:10px;min-height:34px;margin:0 0 18px;padding:0 14px 0 12px;border-radius:var(--r-pill);background:rgba(8,14,26,.62);font:500 14.5px/1 var(--f-body)}
.place-where::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--light);box-shadow:0 0 0 4px rgba(255,210,138,.24)}   /* the light is on here */
.place-name{font-size:clamp(32px,3.9vw,60px)}
.place-price{display:flex;align-items:baseline;gap:8px;margin:18px 0 0;font:600 clamp(20px,1.7vw,24px)/1 var(--f-display);letter-spacing:-.02em}
.place-price span{color:var(--on-dark-2);font:400 15px/1 var(--f-body);letter-spacing:0}
.place-rate{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:14px 0 0;--star-0:rgba(244,246,250,.36)}
.place-rate .rating{--rt:18px;filter:drop-shadow(0 1px 2px rgba(5,9,18,.55))}
.place-rate .rated{color:var(--on-dark-2);font-size:14.5px;text-shadow:0 1px 2px rgba(5,9,18,.9),0 3px 12px rgba(5,9,18,.6)}
.place-rate .rated b{color:var(--on-dark)}
.place-rate .plaque{background:rgba(8,14,26,.62);box-shadow:inset 0 0 0 1px var(--on-dark-line);color:var(--on-dark)}
.place-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:28px}
.place .link-arrow{color:var(--on-dark);text-decoration-color:var(--on-dark-line)}
.place-note{margin:22px 0 0;max-width:44ch;color:var(--on-dark-2);font:var(--t-caption)}
/* in the scene itself, behind the panels: the ground under the words held darker, and a ring on the light */
.place-shade{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;transition:opacity .9s var(--ease-soft)}
.place-shade.on{opacity:1}
.place-shade[data-side="left"]{background:radial-gradient(96% 88% at 0% 100%,rgba(8,14,26,.84),rgba(8,14,26,.46) 44%,rgba(8,14,26,0) 72%)}
.place-shade[data-side="right"]{background:radial-gradient(96% 88% at 100% 100%,rgba(8,14,26,.84),rgba(8,14,26,.46) 44%,rgba(8,14,26,0) 72%)}
.place-pin{position:absolute;left:0;top:0;z-index:2;width:0;height:0;opacity:0;pointer-events:none;transition:opacity .35s var(--ease-soft)}
.place-pin.on{opacity:1}
.pdp-page .panel{scroll-margin-top:calc(var(--gap) + 72px)}

/* under a place the deck waits wholly below the first screen: only the buying card shows its head there */
@media (min-width:1101px){.has-place .pg{margin-top:48px}}

/* ---------- the deck ---------- */
.pg{position:sticky;top:calc(var(--gap) + 72px);display:grid;justify-items:start;gap:14px;min-width:0;padding:clamp(46px,6.4vh,64px) 0 6px;--ease-deck:cubic-bezier(.785,.135,.15,.86)}
/* the photos keep to the left and the buying card to the right: the light's own backdrop shows in the open middle */
.pg-stage{position:relative;width:min(100%,max(380px,calc(100svh - 246px)));aspect-ratio:1;perspective:1200px;perspective-origin:50% 38%;touch-action:pan-y pinch-zoom}   /* a sideways swipe is the gallery's, an up or down one scrolls the page */
.deck{position:absolute;inset:0;margin:0;padding:0;list-style:none;transform-style:preserve-3d}
.deck li{position:absolute;inset:0;border-radius:var(--r-panel);overflow:hidden;background:var(--bg-2);box-shadow:var(--shadow-float);cursor:zoom-in;backface-visibility:hidden;
  transition:transform .8s var(--ease-deck),opacity .45s var(--ease-soft)}
.deck li::after{content:"";position:absolute;inset:0;background:var(--night);opacity:0;pointer-events:none;transition:opacity .8s var(--ease-soft)}
.deck img{width:100%;height:100%;object-fit:cover;transition:transform .45s var(--ease-out)}
.deck img:not([src]){visibility:hidden}
/* in front; waiting behind, each a little higher and further; lifted away toward the eye */
.deck li[data-pos="0"]{z-index:4}
.deck li[data-pos="1"]{z-index:3;transform:translate3d(0,-6.6%,-80px);pointer-events:none}
.deck li[data-pos="1"]::after{opacity:.2}
.deck li[data-pos="2"]{z-index:2;transform:translate3d(0,-12.8%,-160px);pointer-events:none}
.deck li[data-pos="2"]::after{opacity:.42}
.deck li[data-pos="3"]{z-index:1;transform:translate3d(0,-16%,-240px);opacity:0;pointer-events:none}
.deck li[data-pos="-1"]{z-index:5;transform:translate3d(0,54%,150px) rotateX(-21deg);opacity:0;pointer-events:none;transition:transform .8s var(--ease-deck),opacity .5s var(--ease-soft) .12s}
/* the prints are dealt in behind the first photo once it has arrived */
.deck:not(.dealt) li:not([data-pos="0"]){transform:translate3d(0,-26%,-420px);opacity:0}
.deck.dealt li[data-pos="2"]{transition-delay:.07s}
/* a photo asked for from the keyboard, or by choosing an option, is simply there */
.deck.quiet li,.deck.quiet li::after{transition:none}
.pg-stage.zoom .deck li[data-pos="0"] img{transform:scale(1.9);transform-origin:var(--zx,50%) var(--zy,50%)}
.pg-stage.empty .deck li{display:grid;place-items:center;cursor:default;color:var(--ink-3);font:var(--t-small)}
.pg-stage .fav{top:14px;right:14px;z-index:8;width:46px;height:46px}
/* the way out: top left of the first screen, and of the photos, where the heart is top right */
.back{position:absolute;z-index:8;display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 18px 0 14px;border-radius:var(--r-pill);background:var(--bg);color:var(--ink);font:var(--t-ui-sm);box-shadow:var(--shadow-pop);transition:transform .16s var(--ease-out)}
.back .ic{width:18px;height:18px;transform:scaleX(-1)}
.back:active{transform:scale(.97)}
.pg-back{left:14px;top:14px}
.place-back{left:var(--pad);top:clamp(16px,2.8vh,30px)}
.has-place .pg-back{display:none}                  /* a light in the house has its way out on the first screen */
.pg-stage .view3d{position:absolute;left:14px;bottom:14px;z-index:8;box-shadow:none}
/* one small control on the photo: play or pause, and which photo is in front. A click on the photo opens it full
   screen; the button for that is there for the keyboard only, and shows itself when it is reached */
.pg-tools{position:absolute;right:14px;bottom:14px;z-index:8;display:flex;gap:6px}
.pg-open,.pg-play{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px 0 11px;border:0;border-radius:var(--r-pill);background:var(--bg);color:var(--ink);font:600 13px/1 var(--f-body);font-variant-numeric:tabular-nums;cursor:pointer;transition:transform .16s var(--ease-out)}
.pg-open{padding:0 12px}
.pg-open:not(:focus-visible){position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pg-open .ic,.pg-play .ic{width:17px;height:17px}
.pg-open:active,.pg-play:active{transform:scale(.96)}
.pg-play .ic-pause,.pg-play[aria-pressed="true"] .ic-play{display:none}
.pg-play[aria-pressed="true"] .ic-pause{display:block}
.pg-nav{position:absolute;top:50%;z-index:8;display:grid;place-items:center;width:46px;height:46px;margin-top:-23px;padding:0;border:0;border-radius:50%;background:var(--bg);color:var(--ink);cursor:pointer;opacity:0;transition:opacity .16s var(--ease-soft),transform .16s var(--ease-out)}
.pg-nav.prev{left:14px}
.pg-nav.next{right:14px}
.pg-nav .ic{width:20px;height:20px}
.pg-nav.prev .ic{transform:rotate(90deg)}
.pg-nav.next .ic{transform:rotate(-90deg)}
.pg-nav:active{transform:scale(.94)}
.pg-nav:focus-visible{opacity:1}
.pg-nav:disabled{visibility:hidden}
@media (hover:hover) and (pointer:fine){.pg-stage:hover .pg-nav{opacity:1}}
@media (pointer:coarse){.pg-nav{display:none}}
/* the photos are counted by short marks under the deck: the long one is the photo in front */
.pg-thumbs{display:flex;justify-content:center;gap:8px;width:min(100%,max(380px,calc(100svh - 246px)));max-width:100%;padding:8px 3px;overflow-x:auto;scrollbar-width:none}
.pg-thumbs::-webkit-scrollbar{display:none}
.pg-thumbs button{position:relative;flex:none;width:16px;height:4px;padding:0;border:0;border-radius:4px;background:rgba(244,246,250,.36);cursor:pointer;transition:width .3s var(--ease-out),background-color .3s var(--ease-soft)}
.pg-thumbs button::after{content:"";position:absolute;inset:-14px -4px}   /* 24px wide, 32px tall */
.pg-thumbs button[aria-current="true"]{width:32px;background:var(--on-dark)}
.pg-thumbs button:focus-visible{outline:2px solid var(--on-dark);outline-offset:4px}
@media (hover:hover) and (pointer:fine){.pg-thumbs button:hover{background:rgba(244,246,250,.72)}}
/* photos from buyers, kept apart from the store's own: they stand with the rating, where the buyers speak */
.pg-buyers{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;margin-top:2px}
.pg-buyers .label{display:inline-flex;align-items:center;gap:8px;flex:none;color:var(--ink-2)}
.pg-buyers .label .ic{width:18px;height:18px}
.pg-buyers .plaque{flex:none}
.pg-buyers-list{display:flex;gap:6px;min-width:0;margin:0;padding:3px;list-style:none;overflow-x:auto;scrollbar-width:none}
.pg-buyers-list::-webkit-scrollbar{display:none}
.pg-buyers-list button{display:block;width:44px;height:44px;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--bg-2);cursor:zoom-in}
.pg-buyers-list img{width:100%;height:100%;object-fit:cover}

/* ---------- the buying card ---------- */
.buy{display:grid;gap:18px;min-width:0;padding:clamp(22px,2.2vw,32px)}
.buy[aria-busy="true"] > *{visibility:hidden}
/* beside the photos the filled panel is 1070px or more: held that tall while it fills, so the block under it never shows and jumps away */
@media (min-width:1101px){.buy[aria-busy="true"]{min-height:1060px}}
.buy-head{display:grid;gap:8px}
.p-name{margin:0;font:600 clamp(26px,2.1vw,32px)/1.08 var(--f-display);letter-spacing:-.032em;text-wrap:balance}
.buy .full{margin:0;max-width:58ch;color:var(--ink-3);font:var(--t-caption)}
.buy .full:empty{display:none}
.p-rated{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:4px 0 0}
.p-priceline{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px}
.pprice{display:flex;align-items:baseline;gap:12px;margin:0;font:600 clamp(24px,1.9vw,28px)/1 var(--f-display);letter-spacing:-.03em}
.pprice .was{font:400 17px/1 var(--f-body);letter-spacing:0}
.p-sale{margin:0;color:var(--ink-2);font:var(--t-caption)}
.opts{display:grid;gap:16px;padding-top:18px;border-top:1px solid var(--line-2)}
/* the choices, a size smaller inside the card */
.buy .picks{gap:6px}
.buy .pick{min-height:40px;padding:0 13px;font-size:14px}
.buy .finishes{gap:8px}
.buy .finish{width:58px;font-size:12.5px}
.buy .finish i{width:58px;height:58px}
.buy .finish span{max-width:58px}
.opts:empty{display:none}
.opt{display:grid;gap:8px;min-width:0}
.opt-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0}
.opt-top .label{color:var(--ink-2)}
.opt-top output{color:var(--ink);font:600 15px/1.2 var(--f-body)}
.opt .explain{margin:0;color:var(--ink-2);font:var(--t-caption)}
.pick .so{color:var(--ink-3);font-size:12.5px;font-weight:400}
.pick.far{color:var(--ink-3)}
/* one way to buy: Buy now goes straight to the store's checkout; the cart is the small one beside it */
.addrow{display:flex;align-items:stretch;gap:10px}
.addrow .btn{gap:14px;min-width:0;min-height:56px;padding:0 22px}
.addrow .buy-go{flex:1;font-size:16.5px}
.addrow .btn [data-total]:not(:empty){padding-left:14px;border-left:1px solid rgba(244,246,250,.32);font-weight:500}
.addrow .cart-add{flex:none;width:56px;padding:0}
.addrow .cart-add .ic{width:22px;height:22px}
.buy .way{padding-top:18px;border-top:1px solid var(--line-2)}
.buy .way li{padding-top:20px}
.facts{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.facts li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:11px;align-items:start;color:var(--ink-2);font:400 14px/1.45 var(--f-body)}
.facts .ic{width:20px;height:20px}
.facts .ic{color:var(--ink)}
.facts b{color:var(--ink)}

/* ---------- the specifications: a line each, its value and what it means ---------- */
.decide-grid{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);gap:clamp(28px,4.4vw,76px);align-items:start;margin-top:clamp(20px,3vh,34px)}
.decide-side{position:sticky;top:calc(var(--gap) + 84px);display:grid;gap:clamp(20px,3vh,30px);min-width:0}
.decide-side:has(details[open]){position:static}            /* an open tab can be longer than the screen */
.decide-side .qa summary{padding:18px 0;font-size:16px}
.decide-side .qa .a p{padding-bottom:22px;font-size:15px}
/* the store's own tabs, in its words: its headings a step above its text */
.decide-side .qa .a.store{max-width:62ch;padding:0 0 22px;color:var(--ink-2);font:400 14.5px/1.55 var(--f-body)}
.decide-side .qa .a.store p{padding:0 0 12px;font-size:inherit}
.decide-side .qa .a.store h2{margin:20px 0 8px;color:var(--ink);font:600 15px/1.35 var(--f-body)}
.decide-side .qa .a.store h2:first-of-type{margin-top:8px}
.decide-side .qa .a.store ul{margin:0 0 12px;padding-left:20px}
.decide-side .qa .a.store li{margin:0 0 4px}
/* a light with no spec table: only what is good to know */
.decide.bare .sheet{display:none}
.decide.bare .decide-grid{grid-template-columns:minmax(0,760px)}
.decide.bare .decide-side{position:static}
.sheet{margin:0;border-top:1px solid var(--line-2)}
.sheet .row{display:grid;grid-template-columns:minmax(110px,.32fr) minmax(0,1fr);gap:4px 24px;align-items:baseline;padding:16px 0 17px;border-bottom:1px solid var(--line)}
.sheet dt{margin:0;color:var(--ink-3);font:var(--t-label)}
.sheet dd{display:grid;gap:4px;min-width:0;margin:0}
.sheet .val{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0}
.sheet .val b{color:var(--ink);font:600 16px/1.35 var(--f-body);font-variant-numeric:tabular-nums}
.sheet .val > span:not(.units){color:var(--ink-2);font:var(--t-small)}
.sheet .words{margin:0;max-width:54ch;color:var(--ink-3);font:400 14px/1.5 var(--f-body)}
/* light color: a dot of each white this light gives, as it falls on a pale wall */
.kchips{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;list-style:none}
.kchips li{display:flex;align-items:center;gap:7px}
.kchips i{flex:none;width:16px;height:16px;border-radius:50%;background:var(--kc);box-shadow:inset 0 0 0 1px rgba(15,22,34,.14)}
.kchips.span i{width:72px;border-radius:8px}
.kchips b{color:var(--ink);font:600 16px/1.35 var(--f-body);font-variant-numeric:tabular-nums}
.kchips span{color:var(--ink-2);font:var(--t-small)}
.units{display:inline-flex;margin-left:auto;padding:3px;border-radius:var(--r-pill);background:var(--bg-2)}
.units button{position:relative;min-width:36px;height:26px;padding:0 10px;border:0;border-radius:var(--r-pill);background:none;color:var(--ink-2);font:500 12.5px/1 var(--f-body);cursor:pointer;transition:background-color .16s var(--ease-soft),color .16s var(--ease-soft)}
.units button::after{content:"";position:absolute;inset:-10px -1px}
.units button[aria-checked="true"]{background:var(--ink);color:var(--bg)}
.units button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* the light beside a person, to one scale */
.size-fig{margin:0;padding:0;border-radius:var(--r-panel);overflow:hidden;background:var(--dusk)}
.size-draw svg{display:block;width:100%;height:auto}
.size-fig figcaption{padding:12px clamp(16px,2vw,22px) 16px;color:rgba(247,243,236,.72);font:var(--t-caption)}
/* words on the photograph keep a soft paper edge, so they read on the wall and on the wood */
.sd-num,.sd-note{paint-order:stroke;stroke:rgba(255,255,255,.72);stroke-width:1.8px;stroke-linejoin:round}
.sd-note{fill:var(--ink-2)}
.sd-lamp{mix-blend-mode:multiply}
.sd-floor,.sd-line{fill:none;stroke:var(--line-3);stroke-width:1.5}
.sd-cord{fill:none;stroke:var(--ink-3);stroke-width:1}
.sd-guide{fill:none;stroke:var(--line-3);stroke-width:1;stroke-dasharray:2 4}
.sd-person{fill:var(--bg-3)}
.sd-light{fill:rgba(255,255,255,.4);stroke:var(--ink);stroke-width:1.2;stroke-dasharray:3 3}
.sd-thing{fill:rgba(255,255,255,.62);stroke:var(--ink-3);stroke-width:1;stroke-linejoin:round}   /* what stands by the light, for its size */
.sd-dim{fill:none;stroke:var(--ink-3);stroke-width:1}
.sd-num{fill:var(--ink);font:600 12px var(--f-body);font-variant-numeric:tabular-nums}
.sd-note{fill:var(--ink-3);font:400 11.5px var(--f-body)}

/* ---------- the store's description: its opening on the left, its own headed parts on the right ---------- */
.about-more{display:none}
@media (max-width:720px){.about-more:not([hidden]){display:inline-flex}}
/* the whole description: the opening across, the parts to read on the left, the facts on the right on paper */
.about-text.ds{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:28px clamp(28px,4.4vw,76px)}
.about-text.ds .lead{grid-column:1/-1;max-width:70ch}
.about-text.ds .parts{display:grid;gap:26px;align-content:start}
.d-part > p{margin:0 0 10px}
.d-part > p:last-child{margin-bottom:0}
.d-part .label{margin:0 0 8px;color:var(--ink);font:var(--t-title)}
.d-list{display:grid;gap:6px;margin:0;padding-left:1.15em}
.d-list li::marker{color:var(--ink-3)}
.d-specs{display:grid;margin:0;border-top:1px solid var(--line)}
.d-specs > div{display:grid;grid-template-columns:minmax(96px,.4fr) minmax(0,1fr);gap:14px;padding:9px 0;border-bottom:1px solid var(--line)}
.d-specs dt{color:var(--ink-3);font:var(--t-small)}
.d-specs dd{margin:0;color:var(--ink);font:var(--t-small);overflow-wrap:anywhere}
.d-opt{margin:0 0 12px}
.d-opt b{display:block;margin-bottom:2px;color:var(--ink);font-weight:600}
.d-opt p{margin:0 0 6px}
.d-note{margin:10px 0 0;color:var(--ink-3);font:var(--t-caption);font-style:italic}
.d-facts .d-part{padding:18px 20px 20px;border-radius:var(--r-panel);background:var(--bg-2)}
/* one, a set of two or a set of three: a card for each, and under a set a line for each of its lights */
.bundle{display:grid;gap:10px}
.bsets{display:grid;gap:8px}
.bset{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 12px;width:100%;min-height:58px;padding:11px 16px 11px 46px;border:1px solid var(--line-2);border-radius:var(--r-field);background:var(--bg);color:var(--ink);text-align:left;cursor:pointer;transition:border-color .16s var(--ease-soft),box-shadow .16s var(--ease-soft)}
.bset::before{content:"";position:absolute;left:16px;top:50%;width:18px;height:18px;margin-top:-9px;border-radius:50%;background:var(--bg);box-shadow:inset 0 0 0 1.5px var(--line-3);transition:box-shadow .16s var(--ease-out)}
.bset[aria-checked="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.bset[aria-checked="true"]::before{box-shadow:inset 0 0 0 5.5px var(--ink)}
.bset:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.bset:hover{border-color:var(--line-3)}}
.bset-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.bset-name b{font:600 16px/1.2 var(--f-body)}
.bset-tag{color:var(--ink-3);font:var(--t-small)}
.bset-save{justify-self:start;padding:4px 9px;border-radius:var(--r-pill);background:var(--action);color:#fff;font:600 12px/1 var(--f-body);white-space:nowrap}
/* the store's own word for a set (as its theme says it): on its top edge, so the row keeps its measure */
.bset{position:relative}
.bset-badge{position:absolute;top:-9px;right:14px;padding:3px 9px;border-radius:var(--r-pill);background:var(--ink);color:#fff;font:600 11px/1.2 var(--f-body);letter-spacing:.01em}
.bset-price{grid-column:3;justify-self:end;font:600 16px/1.2 var(--f-body);text-align:right;white-space:nowrap}
.bset-price s{display:block;color:var(--ink-3);font:400 13px/1.3 var(--f-body)}
.bunits{display:grid;gap:8px;margin:2px 0 0;padding:0;list-style:none}
.bunits li{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bunit-n{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg-2);color:var(--ink-2);font:600 12px/1 var(--f-body)}
.bunit-sel select{appearance:none;-webkit-appearance:none;min-height:40px;max-width:100%;padding:0 34px 0 12px;border:1px solid var(--line-2);border-radius:var(--r-field);color:var(--ink);font:var(--t-ui-sm);cursor:pointer;
  background:var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%235C6577' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l4 4 4-4'/></svg>") right 13px center no-repeat}
.bunits li.bad select{border-color:var(--danger)}
.bunit-off{color:var(--danger);font:var(--t-caption)}
@media (pointer:coarse){.bunit-sel select{min-height:44px;font-size:16px}}
/* under the price: the light's key features, one short line each */
.p-keys{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.p-keys li{display:flex;align-items:flex-start;gap:9px;color:var(--ink-2);font:var(--t-small)}
.p-keys .ic{flex:none;width:16px;height:16px;margin-top:2px;color:var(--action)}
.pay-buy{gap:6px;margin-top:-8px;padding-right:66px;justify-content:center}   /* centred under Buy now: the cart button beside it is 56px and a gap of 10 */
@media (max-width:720px){.p-keys li:nth-child(n+4){display:none}}   /* three on a phone, so Buy now stays near */
.pay-buy .pay-ico{width:34px;height:22px}
.about-text{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);gap:26px clamp(28px,4.4vw,76px);align-items:start;margin-top:clamp(18px,2.6vh,30px);color:var(--ink-2);line-height:1.65}
.about-text.one{grid-template-columns:minmax(0,64ch)}
.about-text p{margin:0;max-width:64ch}
.about-text .lead{color:var(--ink);font:400 clamp(17px,1.3vw,19px)/1.55 var(--f-body)}
.about-text .parts{display:grid;gap:22px}
.about-text .label{margin:0 0 6px;color:var(--ink);font:var(--t-title)}

/* ---------- more from the collection, and what was looked at before ---------- */
.related-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 28px;margin-bottom:clamp(22px,3vh,36px)}
.related .name{min-height:calc(2 * 1.3em)}                    /* room for two lines, so prices in a row stand level */
.recent-list{display:flex;gap:8px;margin:18px calc(-1 * var(--pad)) 0;padding:2px var(--pad) 4px;list-style:none;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:var(--pad);scrollbar-width:none}
.recent-list::-webkit-scrollbar{display:none}
.recent-list li{flex:none;scroll-snap-align:start}
.recent-list a{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:14px;width:272px;padding:8px 16px 8px 8px;border-radius:var(--r-pop);background:var(--bg-2);transition:background-color .16s var(--ease-soft)}
.recent-list img{width:64px;height:64px;border-radius:12px;object-fit:cover;background:var(--bg-3)}
.recent-list b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:600 14.5px/1.3 var(--f-body)}
.recent-list span span{display:block;margin-top:3px;color:var(--ink-3);font:var(--t-caption)}
@media (hover:hover) and (pointer:fine){.recent-list a:hover{background:var(--bg-3)}}

/* ---------- the buying bar that follows: a small card floating at the foot of the screen ---------- */
.sticky-buy{position:fixed;left:50%;bottom:calc(var(--gap) + env(safe-area-inset-bottom));z-index:45;width:min(760px,calc(100% - 2 * var(--gap)));border-radius:20px;background:var(--bg);box-shadow:var(--shadow-float);
  transform:translate(-50%,calc(100% + 40px));visibility:hidden;transition:transform .2s var(--ease-out),visibility 0s linear .2s}
.sticky-buy.on{transform:translate(-50%,0);visibility:visible;transition:transform .36s var(--ease-drawer)}
.sb-in{display:flex;align-items:center;gap:14px;padding:8px 8px 8px 8px}
.sb-img{flex:none;width:52px;height:52px;border-radius:14px;object-fit:cover;background:var(--bg-2)}
.sb-img:not([src]){visibility:hidden}
.sb-what{flex:1;min-width:0;margin:0}
.sb-what b,.sb-sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-what b{font:600 15.5px/1.3 var(--f-body)}
.sb-sub{color:var(--ink-2);font:var(--t-caption)}
.sb-sub #sb-price{color:var(--ink);font-weight:600}
.sb-sub #sb-var:not(:empty)::before{content:"·";margin:0 7px;color:var(--ink-3)}
.sticky-buy .btn{flex:none;min-height:52px}
/* the chat pill would sit on the buying card: it waits until the card has scrolled away */
body.buy-in-view .chat-fab:not(.open){opacity:0;pointer-events:none;transform:translateY(14px)}

/* ---------- photos, full screen ---------- */
/* the dark comes at once; each photo comes up out of it when it is ready */
.pv{width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:var(--night);color:var(--on-dark);touch-action:pan-y pinch-zoom}
.pv::backdrop{background:var(--night)}
.pv[open]{display:grid;place-items:center}
.pv-fig{display:grid;justify-items:center;align-content:center;gap:14px;width:100%;height:100%;margin:0;padding:56px 16px}
.pv-fig img{max-width:100%;border-radius:var(--r-media);object-fit:cover;opacity:0}
.pv-fig img.ready{opacity:1;transition:opacity .2s var(--ease-out)}
.pv.kbd .pv-fig img.ready{transition:none}
.pv-fig figcaption{min-height:20px;color:var(--on-dark-2);font:var(--t-caption);text-align:center}
.pv-nav,.pv-x{position:absolute;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:rgba(244,246,250,.14);color:var(--on-dark);cursor:pointer;transition:background-color .16s var(--ease-soft),transform .16s var(--ease-out)}
.pv-nav{top:50%;margin-top:-24px}
.pv-nav.prev{left:16px}
.pv-nav.next{right:16px}
.pv-nav.prev .ic{transform:rotate(90deg)}
.pv-nav.next .ic{transform:rotate(-90deg)}
.pv-x{top:16px;right:16px}
.pv-nav:active,.pv-x:active{transform:scale(.94)}
@media (hover:hover) and (pointer:fine){.pv-nav:hover,.pv-x:hover{background:rgba(244,246,250,.26)}}
.pv :focus-visible{outline-color:var(--on-dark)}
.pv-count{position:absolute;left:0;right:0;top:30px;margin:0;color:var(--on-dark-2);font:600 13.5px/1 var(--f-body);text-align:center;pointer-events:none}

/* ---------- a light that is not in the catalogue ---------- */
.is-missing .pg,.is-missing .buy > :not(.buy-head),.is-missing .decide,.is-missing .about,.is-missing .sticky-buy,.has-place .is-missing .place{display:none}
.is-missing .pdp{grid-template-columns:minmax(0,1fr);min-height:60vh}
.is-missing .full{color:var(--ink-2);font:var(--t-small)}

/* ---------- narrower screens ---------- */
@media (max-width:1100px){
  .pdp{grid-template-columns:minmax(0,1fr)}
  .buy{width:min(100%,640px);justify-self:center}
  .pg{position:relative;top:auto;justify-items:center}
  .pg-stage{width:min(100%,560px)}
  .decide-grid,.about-text,.about-text.ds{grid-template-columns:minmax(0,1fr)}
  .decide-side{position:static}
  .size-fig{max-width:520px}
}
@media (max-width:720px){
  .pdp-page{padding-top:calc(var(--gap) + 64px)}
  .pdp{scroll-margin-top:calc(var(--gap) + 64px)}
  /* on a narrow screen the words run the full width at the foot, or at the head where the light stands low */
  .has-place .place{min-height:calc(100vh - var(--gap) - 148px);min-height:calc(100svh - var(--gap) - 148px);padding-bottom:26px}
  .has-place .place:not([data-low]) .place-cue{display:none}             /* the words fill the foot of a narrow screen; the card below is the cue */
  .has-place .place[data-low]{padding-bottom:84px}
  .place[data-side]{justify-content:flex-start}
  .place[data-low]{align-items:flex-start;padding-top:14px}
  .place-say{max-width:none}
  .place-actions{margin-top:22px}
  .place-shade[data-side]{background:linear-gradient(180deg,rgba(8,14,26,0) 30%,rgba(8,14,26,.84))}
  .place-shade[data-low]{background:linear-gradient(180deg,rgba(8,14,26,.84),rgba(8,14,26,0) 62%)}
  .pg{gap:12px;padding-top:34px}
  .pg-stage{width:100%}
  .pg-thumbs{width:100%;padding:6px 3px}
  .pg-thumbs button::after{inset:-20px -4px}
  .buy{gap:22px;padding:22px 18px 24px}
  .buy .way{grid-template-columns:minmax(0,.72fr) minmax(0,1.24fr) minmax(0,1.04fr)}
  .buy .way b{font-size:14px}
  .addrow .buy-go{padding:0 16px}
  /* on a phone each line of the specifications is its name over its value */
  .sheet .row{grid-template-columns:minmax(0,1fr);gap:3px;padding:14px 0 15px}
  /* the long description opens on its first lines, the rest one tap away */
  .about-text.folded{max-height:300px;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 62%,transparent);mask-image:linear-gradient(180deg,#000 62%,transparent)}
  .about-more{margin-top:10px}
  .related .card:nth-child(n+5){display:none}
  .sb-in{gap:12px}
  .sb-img{width:46px;height:46px}
  .sticky-buy .btn{min-height:48px;padding:0 20px}
  .pv-fig{padding:64px 0 76px}
  .pv-fig img{border-radius:0}
  .pv-nav{top:auto;bottom:16px;margin:0}
  .pv-nav.prev{left:calc(50% - 60px)}
  .pv-nav.next{right:calc(50% - 60px)}
}
@media (pointer:coarse){
  .pg-open,.pg-play,.p-rated .rv-jump{min-height:44px}
  .buy .pick{min-height:44px}
}
@media (prefers-reduced-motion:reduce){.sticky-buy,.deck li,.deck li::after,.deck img,.pv-fig img.ready{transition:none}.place-say > *{opacity:1;transform:none}}
/* the store's Judge.me widget, while it holds no reviews (product.js) */
.nl-judgeme.empty{display:none}
