/* Valenzo Studio showroom. The whole look hangs off the variables below:
   a second skin (e.g. modern Western) is one more html[data-theme] block plus new backdrop images. */
:root, html[data-theme="maison"] {
  --ink: #0d0a07; --ink-2: #17110b; --ivory: #f5eddf; --muted: #b8aa92;
  --gold: #c8a25a; --gold-hi: #f3deaa; --gold-lo: #a67c36; --line: rgba(200, 162, 90, .34);
  --stone: #efe6d6; --stone-ink: #2b2218;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hall: url(img/hall.webp); --alcove: url(img/niche.webp);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
.emblem { width: 1.5em; height: 1.5em; flex: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 1.05em 2em; font: 400 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--gold); transition: filter .3s, background .3s, color .3s; }
.btn.gold { background: linear-gradient(120deg, var(--gold-lo), var(--gold-hi) 50%, var(--gold-lo)); color: #1a1208; font-weight: 500; }
.btn.line { color: var(--gold-hi); background: rgba(13, 10, 7, .4); }
.btn.small { padding: .8em 1.2em; font-size: .66rem; letter-spacing: .2em; }
.btn:hover { filter: brightness(1.15); }
.btn.line:hover { background: rgba(200, 162, 90, .16); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }

/* ---------- top bar ---------- */
.bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 3rem); padding-top: max(.8rem, env(safe-area-inset-top)); background: linear-gradient(rgba(13, 10, 7, .92), rgba(13, 10, 7, 0)); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--gold-hi); text-decoration: none; font: 500 1.25rem/1 var(--serif); letter-spacing: .34em; text-transform: uppercase; }
.links { display: none; gap: 2.2rem; }
.links a { color: var(--ivory); text-decoration: none; font: 400 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.links a:hover { color: var(--gold-hi); opacity: 1; }
@media (min-width: 860px) { .links { display: flex; } }

/* ---------- hero: the showroom floor at full light, a dressed mannequin on every plinth, the lit sign on the back wall ---------- */
.hero { --hh: max(100vh, 34rem); position: relative; height: var(--hh); overflow: hidden; text-align: center; }
@supports (height: 100svh) { .hero { --hh: max(100svh, 34rem); } }
.floor { position: absolute; inset: 0; overflow: hidden; }
/* the photo always keeps its own shape, so the mannequins stay on their plinths: wide screens crop it, narrow ones walk it sideways */
.hall { position: absolute; left: 50%; top: 50%; width: max(100vw, calc(var(--hh) * 16 / 9)); height: max(var(--hh), calc(100vw * 9 / 16)); transform: translate(-50%, -50%); background: var(--hall) center / 100% 100%; }
/* the client's own logo, halo-lit: a white LED wash on the wall behind it, and a hot edge that follows the shape of the mark */
.sign { position: absolute; left: 50%; top: 35.8%; width: 12.5%; transform: translateX(-50%); pointer-events: none; }
.sign::before { content: ""; position: absolute; inset: -20% -16%; background: radial-gradient(ellipse closest-side, rgba(255, 252, 240, .95), rgba(255, 244, 214, .6) 52%, transparent); }
.sign img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 .14vh .1vh rgba(60, 38, 8, .6)) drop-shadow(0 0 .4vh #fff) drop-shadow(0 0 1.6vh rgba(255, 248, 226, .95)); }
.man { position: absolute; aspect-ratio: 2 / 5; padding: 0; border: 0; background: none; cursor: pointer; transform: translateX(-50%); filter: brightness(.93); transition: filter .8s cubic-bezier(.2, .9, .3, 1); }
.man img { width: 100%; height: 100%; transition: opacity .45s; }
.man.swap img { opacity: 0; }
.man::before { content: ""; position: absolute; left: -70%; right: -70%; top: -40%; bottom: -5%; pointer-events: none; opacity: 0; transition: opacity .8s; background: radial-gradient(ellipse 30% 52% at 50% 36%, rgba(255, 233, 180, .3), transparent 72%), radial-gradient(ellipse 34% 4% at 50% 95.5%, rgba(255, 226, 160, .6), transparent 70%); }
.man::after { content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; bottom: -1.6%; height: 5%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .8), transparent 68%); }
.man:hover, .man:focus-visible, .man.lit { filter: brightness(1.1) drop-shadow(0 0 26px rgba(255, 226, 160, .8)); }
.man:hover::before, .man:focus-visible::before, .man.lit::before { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(13, 10, 7, .5), rgba(13, 10, 7, 0) 15%, rgba(13, 10, 7, 0) 66%, rgba(13, 10, 7, .8) 86%, var(--ink)); }
.hero-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 4.4rem 1rem 1.5rem; pointer-events: none; }
.hero-in a { pointer-events: auto; }
h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* the sign on the wall is the title */
.lede { margin: 0 0 .7rem; font: italic 400 clamp(1.1rem, 2vw, 1.4rem)/1.3 var(--serif); color: var(--ivory); }
.hint { margin: 0; font: 400 .66rem/1.5 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-hi); }
.hint .walk { display: none; }
.hero .actions { justify-content: center; margin-top: 1rem; }
@media (max-aspect-ratio: 13/10) {
  .floor { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .floor::-webkit-scrollbar { display: none; }
  .hall { position: relative; left: 0; top: 0; transform: none; width: calc(var(--hh) * 16 / 9); height: var(--hh); }
  .hint .walk { display: inline; }
  .hint .pick { display: none; }
}

/* ---------- sections ---------- */
section { padding: clamp(4.2rem, 9vw, 8rem) clamp(1.1rem, 5vw, 4rem); }
.night { background: var(--ink); }
.night.deep { background: linear-gradient(var(--ink), var(--ink-2) 30%, var(--ink-2) 70%, var(--ink)); }
.marble { background: linear-gradient(160deg, #f6efe2, var(--stone) 45%, #e4d8c3); color: var(--stone-ink); }
.kicker { margin: 0; font: 400 .72rem/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.marble .kicker { color: var(--gold-lo); }
h2 { margin: .35em 0 .7em; font: 500 clamp(1.9rem, 4.4vw, 3.3rem)/1.12 var(--serif); }
#collection, #studio, #reels { text-align: center; }
#collection h2, #studio h2, #reels h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.note { color: var(--muted); }

/* ---------- collection: every piece stands in its own alcove, dim until you reach it ---------- */
#cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
#cats button, .views button, .sizes button { padding: .7em 1.4em; background: none; color: var(--ivory); border: 1px solid var(--line); border-radius: 99px; font: 400 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
#cats button:hover, .views button:hover, .sizes button:hover { border-color: var(--gold-hi); }
#cats button[aria-pressed="true"], .views button[aria-pressed="true"], .sizes button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1208; font-weight: 500; }
#grid, #more { list-style: none; margin: 2.6rem auto 0; padding: 0; max-width: 1560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 1.5vw, 1.3rem); }
@media (min-width: 720px) { #grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } #more { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { #grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
.niche { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #1a130c var(--alcove) center / cover; }
.fig { position: absolute; inset: 0; width: 100%; height: 100%; }   /* cut-outs are framed exactly like the alcove photo */
.beam { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .8s; background: radial-gradient(ellipse 30% 62% at 50% 6%, rgba(255, 233, 180, .5), transparent 72%), radial-gradient(ellipse 34% 9% at 50% 76%, rgba(255, 226, 160, .55), transparent 70%); }
.card .niche { filter: brightness(.42) saturate(.8); transition: filter .9s cubic-bezier(.2, .9, .3, 1), box-shadow .9s; }
.card .fig { transform-origin: 50% 78%; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.card:hover .niche, .card:focus-visible .niche, .card.lit .niche { filter: brightness(1.06) saturate(1.04); box-shadow: 0 0 0 1px var(--gold), 0 24px 70px -18px rgba(240, 200, 120, .5); }
.card:hover .beam, .card:focus-visible .beam, .card.lit .beam { opacity: 1; }
.card:hover .fig, .card:focus-visible .fig, .card.lit .fig { transform: scale(1.035); }
.flat .fig { top: 10%; height: 70%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; }   /* img/on-*.webp are cropped to the figure: stand its base plate on the plinth, at the size of the other mannequins */
.photo .fig { top: 0; height: 100%; object-position: 50% 50%; background: #fefefe; }   /* a studio photo on white, shown whole, until the piece has its mannequin picture */
.card.photo:hover .niche, .card.photo:focus-visible .niche, .card.photo.lit .niche { filter: none; }   /* extra brightness washes out a white shirt on white */
.meta { display: block; padding: 1rem .3rem 1.4rem; }
.cat { display: block; margin: 0; font: 400 .64rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.name { display: block; margin-top: .25rem; font: 500 1.3rem/1.2 var(--serif); }
.tone { display: block; margin: .1rem 0 0; font: italic 400 1.05rem/1.3 var(--serif); color: var(--gold-hi); }

/* ---------- fitting room ---------- */
#fitting-room { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { #fitting-room { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-inline: max(clamp(1.1rem, 5vw, 4rem), calc((100vw - 1400px) / 2)); } }
.stage { position: relative; }
.stage .niche { width: min(100%, 68vh); margin: 0 auto; box-shadow: 0 0 0 1px var(--line), 0 40px 120px -30px rgba(240, 200, 120, .35); filter: brightness(1.04); transition: filter 1s cubic-bezier(.2, .9, .3, 1); }
.stage.dark .niche { filter: brightness(.1); transition-duration: .3s; }
.stage .beam { opacity: 1; }
/* a copy of the alcove that can go soft and dim when the camera moves in close */
.stage .niche::before { content: ""; position: absolute; inset: -4%; background: #1a130c var(--alcove) center / cover; opacity: 0; filter: blur(16px) brightness(.5); transition: opacity .7s; }
.stage.close .niche::before { opacity: 1; }
.stage.close .beam { opacity: 0; }
#fit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; cursor: grab; touch-action: pan-y; }
#fit:active { cursor: grabbing; }
.stage.live #fit { opacity: 1; }
.stage.failed .zoom { display: none; }
.zoom { position: absolute; z-index: 3; right: .7rem; bottom: .7rem; display: grid; gap: .4rem; }
.zoom button { width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid var(--line); background: rgba(13, 10, 7, .62); color: var(--gold-hi); font: 300 1.3rem/1 var(--sans); cursor: pointer; }
.zoom button:hover { border-color: var(--gold-hi); }
.drag { margin: .9rem 0 0; text-align: center; font: 400 .66rem/1.5 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.panel h2 { margin: .4rem 0 0; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.desc { margin: .8rem 0 0; max-width: 46ch; color: var(--muted); }
.views { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.piece { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(200, 162, 90, .2); }
.what { margin: .2rem 0 0; }
.what .name { display: inline; font-size: 1.7rem; }
.what .tone { display: inline; margin-left: .6rem; font-size: 1.3rem; }
.price, .total { margin: .3rem 0 0; font: 400 .74rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.total { margin-top: 1.4rem; }
.total:empty { display: none; }
.piece .desc { margin-top: .5rem; font-size: .93rem; }
.rail { display: flex; gap: .45rem; overflow-x: auto; margin: .9rem 0 0 -.3rem; padding: .3rem; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail button { flex: none; width: 3.9rem; height: 5rem; padding: 0; overflow: hidden; background: #1d150d; border: 1px solid var(--line); cursor: pointer; opacity: .6; transition: opacity .3s, border-color .3s; }
.rail button:hover, .rail button[aria-current] { opacity: 1; border-color: var(--gold-hi); }
.rail button[aria-current] { box-shadow: 0 0 0 1px var(--gold-hi); }
/* thumbnails show only the part of the cut-out that matters: the shirt, or the jeans */
.rail img { width: 310%; max-width: none; height: auto; margin-left: -105%; transform: translateY(-11%); }
.rail.bottom img { transform: translateY(-42%); }
.sizes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.sizes button { min-width: 3rem; padding: .85em .6em; border-radius: 0; letter-spacing: .08em; }
.panel .fine { margin: .9rem 0 0; max-width: 46ch; color: var(--muted); }

/* ---------- the house ---------- */
.trio { display: grid; gap: clamp(1rem, 2.5vw, 2.2rem); max-width: 1180px; margin: 2.4rem auto 0; }
@media (min-width: 720px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio figure { margin: 0; }
.trio img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(43, 34, 24, .7); }
.trio figcaption { margin: 1.1rem auto 0; max-width: 30ch; font-size: .95rem; }
.trio b { display: block; font: 500 1.6rem/1.2 var(--serif); }

/* ---------- studio videos ---------- */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: 62vw; gap: .9rem; max-width: 1180px; margin: 2.4rem auto 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
.reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border: 1px solid var(--line); scroll-snap-align: center; }
@media (min-width: 720px) { .reels { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }

/* ---------- wholesale + footer ---------- */
.plaque { max-width: 660px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3.5rem); text-align: center; border: 1px solid var(--line); background: rgba(200, 162, 90, .05); }
.plaque .emblem { width: 56px; height: 56px; margin-bottom: 1rem; }
.plaque p { color: var(--muted); }
.plaque .kicker { color: var(--gold); }
.plaque .actions { justify-content: center; }
.foot { padding: 2.6rem 1.2rem 1.4rem; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid rgba(200, 162, 90, .16); }
.fine { max-width: 62ch; margin: 0 auto; font-size: .74rem; opacity: .8; }

/* ---------- opening sequence: the glass doors of the store swing open (vid/doors.mp4 ends on the hero's own picture) ---------- */
#intro { display: none; }
html.intro-on #intro { display: block; position: fixed; inset: 0; z-index: 50; background: #e9dcc3; transition: opacity 1s ease, visibility 0s linear 1s; }
html.intro-on.open #intro { opacity: 0; visibility: hidden; pointer-events: none; }
html.intro-on:not(.open) body { overflow: hidden; }
#doors { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }   /* cropped exactly like .hall */
#skip { position: absolute; bottom: max(1.4rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: .9em 1.4em; background: rgba(13, 10, 7, .62); border: 0; border-radius: 99px; color: var(--ivory); font: 400 .66rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; cursor: pointer; }
#skip:hover { color: var(--gold-hi); }
html.intro-on .hero-in, html.intro-on .bar { opacity: 0; }
html.intro-on.open .hero-in, html.intro-on.open .bar { opacity: 1; transition: opacity 1.2s ease .5s; }

/* ---------- language switch (lang.js) and the bubble that points at it ---------- */
.bar-end { display: flex; align-items: center; gap: .6rem; }
.langbox { position: relative; }
.lang { display: flex; padding: 0; overflow: hidden; background: rgba(13, 10, 7, .5); border: 1px solid var(--line); border-radius: 99px; color: var(--ivory); font: 400 .66rem/1 var(--sans); letter-spacing: .12em; cursor: pointer; }
.lang span { padding: .85em .8em; }
.lang .on { background: var(--gold); color: #1a1208; font-weight: 500; }
.lang:hover { border-color: var(--gold-hi); }
.tip { position: absolute; top: calc(100% + .75rem); right: 0; padding: .65em 1em; white-space: nowrap; text-align: left; background: var(--gold-hi); color: #1a1208; border: 0; border-radius: .6rem; font: 500 .85rem/1.3 var(--sans); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); animation: nudge 1.6s ease-in-out infinite; }
.tip[hidden] { display: none; }
.tip small { display: block; font-size: .72rem; font-weight: 400; }
.tip::before { content: ""; position: absolute; top: -.35rem; right: 1.35rem; width: .8rem; height: .8rem; background: inherit; transform: rotate(45deg); }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (max-width: 480px) {   /* a phone's bar still has to hold the name, the switch and the shop button */
  .bar { gap: .5rem; }
  .brand { gap: .4rem; font-size: 1.05rem; letter-spacing: .2em; }
  .bar .btn.small { padding: .8em .8em; letter-spacing: .1em; }
  .hero-in { padding-bottom: 4.4rem; }   /* the two buttons stay clear of the "May I help you?" button */
}
.bar .btn.small { white-space: nowrap; }
@media (max-width: 370px) { .brand span { display: none; } }   /* small phones: the emblem alone, the name is on the wall behind it */

/* ---------- "May I help you?" (faqbot.js) ---------- */
.fq-pill { position: fixed; z-index: 30; right: calc(.8rem + env(safe-area-inset-right)); bottom: calc(.9rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .5rem; padding: .8em 1.1em; background: var(--ink-2); color: var(--ivory); border: 1px solid var(--gold); border-radius: 99px; font: 500 .9rem/1 var(--sans); box-shadow: 0 8px 24px rgba(0, 0, 0, .55); cursor: pointer; }
.fq-pill i { font-style: normal; font-size: 1.05rem; }
.fq-pill:hover { border-color: var(--gold-hi); }
.fq-pill.fq-hide, html.intro-on:not(.open) .fq-pill { display: none; }   /* never over the door film */
.fq-sheet { position: fixed; z-index: 31; right: calc(.6rem + env(safe-area-inset-right)); bottom: calc(.6rem + env(safe-area-inset-bottom)); display: none; flex-direction: column; width: min(380px, calc(100vw - 1.2rem)); max-height: min(74vh, 620px); overflow: hidden; background: var(--ink-2); color: var(--ivory); border: 1px solid var(--gold); border-radius: 18px; font: 400 .95rem/1.45 var(--sans); box-shadow: 0 18px 50px rgba(0, 0, 0, .65); }
.fq-sheet.on { display: flex; }
.fq-hd { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.fq-hd b { flex: 1; font: 500 1.25rem/1.1 var(--serif); }
.fq-hd small { display: block; margin-top: .2rem; font: 400 .72rem/1.2 var(--sans); color: var(--muted); }
.fq-av { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--gold); }
.fq-x { padding: .1rem .5rem; background: none; border: 0; color: var(--ivory); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.fq-body { flex: 1; overflow: auto; padding: .7rem .9rem; overscroll-behavior: contain; }
.fq-m { max-width: 90%; margin: .45rem 0; padding: .6rem .75rem; border-radius: 14px; background: rgba(245, 237, 223, .08); white-space: pre-line; overflow-wrap: anywhere; }
.fq-m.me { margin-left: auto; width: fit-content; background: var(--gold); color: #1a1208; font-weight: 500; }
.fq-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .3rem; }
.fq-chips button { padding: .5em .8em; background: none; color: var(--ivory); border: 1px solid var(--line); border-radius: 99px; font: 400 .82rem/1.2 var(--sans); text-align: left; cursor: pointer; }
.fq-chips button:hover { border-color: var(--gold-hi); }
.fq-act { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.fq-act a { padding: .55em .9em; background: var(--gold); color: #1a1208; border-radius: 10px; font-size: .85rem; font-weight: 500; text-decoration: none; }
.fq-in { display: flex; gap: .5rem; padding: .65rem .8rem; border-top: 1px solid var(--line); }
.fq-in input { flex: 1; min-width: 0; padding: .65rem .75rem; background: rgba(0, 0, 0, .3); color: var(--ivory); border: 1px solid var(--line); border-radius: 12px; font: 400 16px var(--sans); }   /* 16px: an iPhone zooms the page on anything smaller */
.fq-in button { padding: 0 1rem; background: var(--gold); color: #1a1208; border: 0; border-radius: 12px; font: 500 .85rem var(--sans); cursor: pointer; }

/* ---- cart (cart.js): only there while the Shopify store has the piece for sale ---- */
button.btn { cursor: pointer; }
.buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: -.9rem; padding: 0 .3rem 1.4rem; }
.buy .price { flex-basis: 100%; margin: 0; }
.buy .btn, .buy select { min-height: 44px; }
.buy select { padding: 0 .6em; background: var(--ink-2); color: var(--ivory); border: 1px solid var(--line); border-radius: 0; font: 400 16px var(--sans); }   /* 16px: an iPhone zooms the page on anything smaller */
.ct { width: min(420px, calc(100vw - 1.2rem)); max-height: min(86vh, 700px); padding: 0 0 1rem; background: var(--ink-2); color: var(--ivory); border: 1px solid var(--gold); border-radius: 18px; font: 400 .95rem/1.45 var(--sans); text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, .65); }
.ct::backdrop { background: rgba(0, 0, 0, .6); }
.ct .fq-hd { text-align: left; }
.ct ul { margin: 0; padding: 0 .9rem; list-style: none; text-align: left; }
.ct li { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.ct li span { flex: 1; }
.ct li small { display: block; color: var(--muted); }
.ct li button { flex: none; width: 2.75rem; height: 2.75rem; background: none; color: var(--ivory); border: 1px solid var(--line); border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.ct .total { margin: 1rem 0 .4rem; }
.ct .btn { margin-top: .9rem; }
.ct .btn[hidden] { display: none; }

/* ---- details sheet (valenzo.js): one card or one floor mannequin, on the cart's sheet ---- */
.meta .price { display: block; }
li:has(.buy) .meta .price { display: none; }   /* the store is open: cart.js shows the live price under the card instead */
.pd img { display: block; width: auto; max-width: 100%; height: min(42vh, 400px); margin: .9rem auto 0; object-fit: contain; }
.pd .cat { margin-top: 1.2rem; }
.pd .what, .pd .price, .pd .desc { padding: 0 1.1rem; }
.pd .price:empty { display: none; }
.pd .desc { margin-inline: auto; font-size: .93rem; }

/* ---- one piece on its own page (product.html, product.js): picture, the other colours beside it, then name, price, sizes and the order button ---- */
#piece { padding-top: clamp(5.6rem, 11vw, 8rem); }
.crumb { max-width: 1180px; margin: 0 auto 1.2rem; }
.crumb a { color: var(--muted); font: 400 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.crumb a:hover { color: var(--gold-hi); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem clamp(1.2rem, 3vw, 3rem); max-width: 1180px; margin: 0 auto; }
.pp-fig { cursor: default; max-width: 560px; margin: 0 auto; }
.pp-fig.lit .fig { transform: none; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.shots a { flex: none; width: 3.9rem; height: 4.9rem; overflow: hidden; background: #1d150d var(--alcove) center / cover; border: 1px solid var(--line); opacity: .7; transition: opacity .3s, border-color .3s; }
.shots a:hover, .shots a[aria-current] { opacity: 1; border-color: var(--gold-hi); }
.shots img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shots .photo img { object-fit: cover; }
.pp-info { text-align: center; }
html.pp h1 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin: .3rem 0 0; font: 500 clamp(2rem, 4.4vw, 3rem)/1.1 var(--serif); }
.pp-info .tone { font-size: 1.35rem; }
.pp-info .price { margin-top: .7rem; font-size: .95rem; }
.pp-info .desc { margin-inline: auto; }
.pp-info .sizes { justify-content: center; margin-top: 1.4rem; }
.pp-info .sizes button { min-height: 44px; }
.btn.wide { display: block; width: 100%; max-width: 26rem; margin: 1rem auto 0; padding: 1.25em 1em; box-sizing: border-box; text-align: center; cursor: pointer; }
.pp-info > .fine { margin-top: 1.2rem; color: var(--muted); }
#also { text-align: center; padding-top: 0; }
#also .kicker { margin-bottom: -1rem; }
@media (min-width: 860px) {
  .pp-grid { grid-template-columns: 4.4rem minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
  .pp-fig { grid-column: 2; grid-row: 1; max-width: none; margin: 0; width: 100%; }
  .shots { grid-column: 1; grid-row: 1; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; }
  .shots[hidden] + .pp-info, .pp-info { grid-column: 3; grid-row: 1; text-align: left; padding-top: 1rem; }
  .pp-info .desc { margin-inline: 0; }
  .pp-info .sizes { justify-content: flex-start; }
  .pp-info .btn.wide, .pp-info > .fine { margin-left: 0; }
}
/* ---- the bag (cart.js): the cart sheet, as a drawer on the right edge ---- */
.bag { margin: 0 0 0 auto; width: min(420px, 100vw); height: 100%; max-height: 100dvh; border-radius: 0; border-width: 0 0 0 1px; overflow-y: auto; }
.bag[open] { animation: bag-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes bag-in { from { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
