/* The showroom look (public/showroom.html), over minimal.css: the same bar and summary, moved halfway to the full
   studio. Its type (Figtree) and colours (ink #1b1712, bronze #8a5a2b, amber #e0a96e, warm paper) replace v1's
   Outfit, black and orange; the white becomes a warm studio wall that falls into a floor, and choices are swatches. */
:root {
  --ink: #1b1712; --mute: #74685c; --line: rgba(27, 23, 18, .1);
  --orange: linear-gradient(160deg, #9b6835, #7a4c22); /* the call to action: the studio's bronze, not v1's orange */
  --pill: rgba(255, 253, 250, .78);
  --dark: #1b1712;
  --haze: 0 14px 40px -16px rgba(27, 23, 18, .35);
}
body { font-family: Figtree, 'Figtree fallback', system-ui, sans-serif; letter-spacing: 0; background: #efeae3; color: var(--ink); }
:focus-visible { outline-color: #8a5a2b; }

/* the room: a warm wall lit from above that deepens into the floor, with no hard horizon (the plinth's height on
   screen changes with each product and the orbit, so a drawn floor line would never meet it) */
.stage { background: radial-gradient(90% 60% at 50% 30%, #fdfbf7 0%, rgba(253, 251, 247, 0) 70%), linear-gradient(#f3eee7 0%, #ece5db 55%, #ddd3c5 100%); }

.top { position: absolute; z-index: 1; top: 0; inset-inline-start: 0; inset-inline-end: 0; display: flex; align-items: baseline; gap: 18px; padding: 22px var(--pad); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.brand .logo { display: block; width: auto; height: 20px; flex: none; } /* inline SVG (public/img/castomo.svg, test/logo.test.ts): the castomo wordmark alone; a vector drawn in the page stays sharp at any zoom, where an <img> was resampled */
.top b { font-weight: 600; font-size: 15px; color: var(--mute); }

/* buttons: softer, the studio's 18px rounding, no orange */
.btn { letter-spacing: 0; font-weight: 700; border-radius: 999px; box-shadow: var(--haze); background: rgba(255, 253, 250, .92); }
.change { background: var(--orange); color: #fff; }
.bar.open .change { background: rgba(255, 253, 250, .92); color: var(--ink); }
.done { background: rgba(255, 253, 250, .92); }
.hint { background: var(--ink); box-shadow: 0 4px 0 #e0a96e; letter-spacing: 0; font-weight: 700; }
.hint::after { border-top-color: var(--ink); }
.bar-price { margin-inline-start: auto; margin-inline-end: 6px; font-weight: 700; font-size: 15px; color: var(--ink); background: rgba(255, 253, 250, .7); padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(8px); }
.loading .dot { background: #8a5a2b; }

/* group pills: frosted paper, the open one ink */
.pill { letter-spacing: 0; font-weight: 600; font-size: 14px; padding: 10px 22px; background: var(--pill); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); }
.pill:hover { background: #fff; }
.groups .pill { font-weight: 700; }
.groups .pill[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* choice swatches: a round picture of the material with its name under it; the chosen one ringed in amber */
.choices { gap: 14px; padding-top: 12px; }
.swatch { flex: none; display: grid; justify-items: center; gap: 6px; width: 84px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.swatch span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 0 6px #f4f0ea, 0 0 2px #f4f0ea; }
.swatch .pic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 8px 20px -8px rgba(27, 23, 18, .5); transition: transform .15s, box-shadow .15s; object-fit: cover; }
.swatch .pic.sw { background: var(--img, none) center / cover, var(--c); background-blend-mode: multiply; }
.swatch .pic.ico { background: linear-gradient(160deg, #fff, #f4f0ea); }
.swatch .pic.ico svg { width: 40%; height: 40%; fill: none; stroke: #463b31; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.swatch[aria-checked="true"] .pic { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e0a96e, 0 8px 20px -8px rgba(27, 23, 18, .5); }
.swatch.multi .pic, .swatch.multi[aria-checked="true"] .pic { border-radius: 16px; }
.swatch.model { width: 104px; }
.swatch.model .pic { width: 92px; height: 66px; border-radius: 14px; }
@media (hover: hover) { .swatch:hover .pic { transform: translateY(-2px); } }

/* summary in the studio's paper */
.summary { background: #fffdfa; max-width: none; padding-inline-start: max(var(--pad), calc(50% - 490px)); padding-inline-end: max(var(--pad), calc(50% - 490px)); }
.summary h2, .total, .facts dt { letter-spacing: -.01em; font-weight: 800; }
.cta { box-shadow: 0 10px 30px rgba(138, 90, 43, .28); background-color: #85572b; } /* under the gradient: the colour contrast checkers can measure */
.check input { accent-color: #8a5a2b; }

@media (max-width: 600px) {
  .bar-price { position: absolute; inset-inline-end: 0; bottom: calc(100% + 12px); font-size: 13px; padding: 6px 12px; white-space: nowrap; } /* over "Done", across from the hint: no room beside the buttons */
  .bar.open .bar-price { display: none; } /* no room beside "Close" and "Done": the summary has it */
  .change { padding: 10px 20px; }
  .swatch { width: 72px; }
  .swatch .pic { width: 52px; height: 52px; }
}
