/* app/css/bundles.css: the bundles gallery (#/bundles), the owner-chosen V3 prototype's own tokens and rules
   (.superpowers/sdd/shop-bundles/src/v3.html), scoped under .bx. The wall sits inside the app's frame, whose page rules
   (design-pages.css: `.dz-main:not(#dz) ...`) carry an id's weight, so every rule here is scoped as
   `.bx:not(#_):not(#_)` to keep the prototype's look. Fonts: the self-hosted board faces ("bd ..."), no new request.
   Defects not copied (plan Decision 9): every control is at least 44 px; the tile has no duplicate aria-label. */
.bx {
  --ink: #0B0A08; --ink-rgb: 11,10,8; --ink2: #15120E; --cream: #F4EEE2; --cream-rgb: 244,238,226; --paper: #FBF7EE;
  --gold: #E8CB7A; --gold2: #D9B45E; --gold-deep: #9A7A2E;
  --dim: rgba(244,238,226,.66); --line: rgba(244,238,226,.14); --line-gold: rgba(217,180,94,.5); --plate: #FFFFFF;
  --sans: "bd Plus Jakarta Sans", system-ui, sans-serif; --serif: "bd Bodoni Moda", Didot, Georgia, serif;
  --out: cubic-bezier(.16,1,.3,1); --silk: cubic-bezier(.65,0,.35,1);
}
/* the page around it: the app's frame keeps its head (and the phone its tab bar); the main area is the wall's own near-black
   edge to edge, with no gutter or top gap of cream (main#main's padding, design-pages.css's cream ground) */
:root main#main[data-page="bundles"]:not(#_) { max-width: none; padding-inline: 0; padding-top: 0; background: #0B0A08; }
.bx:not(#_):not(#_) { min-height: 100vh; background: var(--ink); color: var(--cream); font: 500 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-align: left; }
.bx:not(#_):not(#_) * { box-sizing: border-box; }
.bx:not(#_):not(#_) ::selection { background: var(--gold); color: var(--ink); }
.bx:not(#_):not(#_) img { display: block; max-width: 100%; }
.bx:not(#_):not(#_) button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; border: 0; background: none; padding: 0; margin: 0; }
.bx:not(#_):not(#_) a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.bx:not(#_):not(#_) :is(button, a) { transition: transform 240ms var(--out), background-color 200ms, color 200ms, box-shadow 240ms var(--out), opacity 200ms; }
.bx:not(#_):not(#_) :is(button:active:not(:disabled), a:active) { transform: scale(.95); transition-duration: 90ms; transition-timing-function: ease-out; }
.bx:not(#_):not(#_) :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 12px; box-shadow: none; }
.bx:not(#_):not(#_) [hidden] { display: none !important; }
.bx:not(#_):not(#_) svg { flex: none; }

/* the sticky tab row: pinned just below the app's own sticky header (--bx-stick is that header's measured height, set by the
   view), one z-index under it so the site nav always stays on top; the app header carries the logo and the one bag */
.bx:not(#_):not(#_) .bx-top { position: sticky; top: var(--bx-stick, 0px); z-index: 19; background: rgba(11,10,8,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bx:not(#_):not(#_) .bx-top-in { max-width: 1280px; margin: 0 auto; padding: 8px 16px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.bx:not(#_):not(#_) .bx-bagbtn { position: relative; width: 46px; height: 46px; border-radius: 23px; display: grid; place-items: center; background: var(--gold); color: var(--ink); margin-bottom: 4px; }
.bx:not(#_):not(#_) .bx-bagbtn b { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--cream); color: var(--ink); font: 800 11px/20px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--ink); }
.bx:not(#_):not(#_) .bx-bagbtn.bump { animation: bx-bump 520ms var(--out); }
@keyframes bx-bump { 30% { transform: scale(1.16); } }
.bx:not(#_):not(#_) .bx-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 0 0 -16px; padding: 4px 16px 0; }
.bx:not(#_):not(#_) .bx-tabs::-webkit-scrollbar { display: none; }
.bx:not(#_):not(#_) .bx-tab { flex: none; position: relative; min-height: 46px; font-weight: 700; font-size: 14px; color: var(--dim); white-space: nowrap; border-radius: 0; }
.bx:not(#_):not(#_) .bx-tab small { margin-left: 1px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--dim); vertical-align: 5px; }
.bx:not(#_):not(#_) .bx-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform 360ms var(--out); }
.bx:not(#_):not(#_) .bx-tab[aria-pressed="true"] { color: var(--cream); }
.bx:not(#_):not(#_) .bx-tab[aria-pressed="true"] small { color: var(--gold); }
.bx:not(#_):not(#_) .bx-tab[aria-pressed="true"]::after { transform: none; }

/* the wall */
.bx:not(#_):not(#_) .bx-main { max-width: 1280px; margin: 0 auto; padding: 30px 16px 90px; }
.bx:not(#_):not(#_) .bx-head { display: grid; gap: 8px; margin-bottom: 30px; }
.bx:not(#_):not(#_) .bx-head h1 { margin: 0; font: 800 clamp(34px, 8vw, 72px)/.98 var(--sans); letter-spacing: -.04em; color: var(--cream); }
.bx:not(#_):not(#_) .bx-head p { margin: 0; color: var(--dim); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.bx:not(#_):not(#_) .bx-head p b { color: var(--gold); font-weight: inherit; }
.bx:not(#_):not(#_) .bx-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; list-style: none; margin: 0; padding: 0 0 50px; }
.bx:not(#_):not(#_) .bx-wall > li { margin: 0; padding: 0; }
.bx:not(#_):not(#_) .bx-wall > li::before { content: none; }
.bx:not(#_):not(#_) .bx-wall > li:nth-child(even) { transform: translateY(42px); }
@media (min-width: 760px) {
  .bx:not(#_):not(#_) .bx-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
  .bx:not(#_):not(#_) .bx-wall > li:nth-child(even) { transform: none; }
  .bx:not(#_):not(#_) .bx-wall > li:nth-child(3n+2) { transform: translateY(70px); }
}
.bx:not(#_):not(#_) .bx-tile { display: block; width: 100%; text-align: left; border-radius: 6px; }
.bx:not(#_):not(#_) .bx-tile .lit { position: relative; display: block; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: var(--plate); box-shadow: 0 40px 60px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04); transform: translateY(40px) scale(.94); opacity: 0; transition: transform 900ms var(--out), opacity 700ms var(--out); }
.bx:not(#_):not(#_) .bx-tile.in .lit { transform: none; opacity: 1; }
.bx:not(#_):not(#_) .bx-tile .lit img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--out); }
@media (hover: hover) { .bx:not(#_):not(#_) .bx-tile:hover .lit img { transform: scale(1.04); } }
.bx:not(#_):not(#_) .bx-tile .cap { display: block; padding: 14px 2px 0; }
.bx:not(#_):not(#_) .bx-tile .nm { display: block; font: 700 15px/1.3 var(--sans); color: var(--cream); }
.bx:not(#_):not(#_) .bx-tile .tn { font-weight: 500; color: var(--dim); }
.bx:not(#_):not(#_) .bx-tile .pr { display: block; margin-top: 3px; font-size: 13px; color: var(--dim); font-weight: 600; }

/* reduced motion (the system setting, and .bx-rm set by the view from motion.js): plain fades, no rise, no offset, no zoom.
   The fade is !important: app.css cuts every transition to .01ms under reduced motion, and the wall keeps its 300 ms fade. */
@media (prefers-reduced-motion: reduce) {
  .bx:not(#_):not(#_) .bx-tile .lit { transform: none; transition: opacity 300ms linear !important; }
  .bx:not(#_):not(#_) .bx-wall > li:nth-child(n) { transform: none; }
  .bx:not(#_):not(#_) .bx-tile:hover .lit img { transform: none; }
}
.bx.bx-rm:not(#_):not(#_) .bx-tile .lit { transform: none; transition: opacity 300ms linear !important; }
.bx.bx-rm:not(#_):not(#_) .bx-wall > li:nth-child(n) { transform: none; }
.bx.bx-rm:not(#_):not(#_) .bx-tile:hover .lit img { transform: none; }

/* ---------- the full view (Task 12): a vertical gallery of one type's colours, V3's own rules ----------
   A fixed overlay above the app's frame (its header, the phone's tab bar, the toasts) and under motion.css's #fx-layer.
   --glass-h is the panel's measured height (the view keeps it), so on a phone the bundle and its dots stay clear of it. */
.bx:not(#_):not(#_) .bx-full { position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--cream); opacity: 0; pointer-events: none; transition: opacity 420ms var(--out); --glass-h: 248px; }
.bx:not(#_):not(#_) .bx-full.open { opacity: 1; pointer-events: auto; }
.bx:not(#_):not(#_) .bx-full .bx-ftop { position: absolute; z-index: 6; left: 0; right: 0; top: 0; padding: max(12px, env(safe-area-inset-top)) 16px 0; background: linear-gradient(rgba(11,10,8,.9), rgba(11,10,8,0)); }
.bx:not(#_):not(#_) .bx-full .bx-frow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bx:not(#_):not(#_) .bx-full .bx-fcount { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.bx:not(#_):not(#_) .bx-full .bx-facts { display: flex; gap: 10px; }
.bx:not(#_):not(#_) .bx-full .bx-facts .bx-bagbtn { margin: 0; }
.bx:not(#_):not(#_) .bx-full .bx-iconbtn { width: 46px; height: 46px; border-radius: 23px; display: grid; place-items: center; background: rgba(var(--cream-rgb),.12); border: 1px solid rgba(var(--cream-rgb),.22); color: var(--cream); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bx:not(#_):not(#_) .bx-full .bx-tabs { margin: 0 -16px; }
.bx:not(#_):not(#_) .bx-full .bx-reel { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.bx:not(#_):not(#_) .bx-full .bx-reel::-webkit-scrollbar { display: none; }
.bx:not(#_):not(#_) .bx-room { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: grid; padding: 124px 0 calc(var(--glass-h) + 66px); }
.bx:not(#_):not(#_) .bx-room .bx-wash { position: absolute; inset: -20% -10%; background: radial-gradient(50% 42% at 50% 42%, color-mix(in srgb, var(--hex) 55%, transparent), transparent 72%); opacity: .7; transform: translate3d(0, calc(var(--p, 0) * 120px), 0); pointer-events: none; }
.bx:not(#_):not(#_) .bx-room .bx-word { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: italic 500 clamp(70px, 22vw, 260px)/.9 var(--serif); letter-spacing: -.02em; color: rgba(var(--cream-rgb),.09); white-space: nowrap; transform: translate3d(calc(var(--p, 0) * -60px), calc(var(--p, 0) * 180px), 0); pointer-events: none; }
.bx:not(#_):not(#_) .bx-room .bx-frame { position: relative; z-index: 2; justify-self: center; align-self: center; height: 100%; max-height: 640px; aspect-ratio: 3/4; max-width: calc(100vw - 48px); transform: translate3d(0, calc(var(--p, 0) * -70px), 0) scale(calc(1 - var(--a, 0) * .12)); opacity: calc(1 - var(--a, 0) * .7); }
.bx:not(#_):not(#_) .bx-room .bx-frame .bx-lit { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: var(--plate); box-shadow: 0 60px 80px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.06); }
.bx:not(#_):not(#_) .bx-room .bx-photos { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.bx:not(#_):not(#_) .bx-room .bx-photos::-webkit-scrollbar { display: none; }
.bx:not(#_):not(#_) .bx-room .bx-photos img { flex: none; width: 100%; height: 100%; max-width: none; object-fit: cover; scroll-snap-align: center; -webkit-user-drag: none; }
/* the photo dots: V3's 6 px marks in 44 px targets (its 32 px targets are a defect not copied) */
.bx:not(#_):not(#_) .bx-room .bx-pdots { position: absolute; z-index: 3; left: 50%; bottom: -50px; transform: translateX(-50%); display: flex; gap: 0; }
.bx:not(#_):not(#_) .bx-room .bx-pdots button { width: 44px; height: 44px; display: grid; place-items: center; }
.bx:not(#_):not(#_) .bx-room .bx-pdots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(var(--cream-rgb),.35); transition: width 300ms var(--out), background 300ms; }
.bx:not(#_):not(#_) .bx-room .bx-pdots [aria-current="true"] span { width: 18px; background: var(--gold); }
.bx:not(#_):not(#_) .bx-full .bx-vnav { position: absolute; z-index: 6; right: 16px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.bx:not(#_):not(#_) .bx-full .bx-vnav button:disabled { opacity: .3; cursor: default; }
@media (max-width: 899px) { .bx:not(#_):not(#_) .bx-full .bx-vnav { display: none; } }

/* the glass panel */
.bx:not(#_):not(#_) .bx-full .bx-glass { position: absolute; z-index: 6; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 16px; border-radius: 24px; background: rgba(32,28,22,.58); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border: 1px solid rgba(var(--cream-rgb),.16); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bx:not(#_):not(#_) .bx-full .bx-namerow { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bx:not(#_):not(#_) .bx-full .bx-name { min-width: 0; }
.bx:not(#_):not(#_) .bx-full .bx-name h2 { margin: 2px 0 0; font: 800 19px/1.15 var(--sans); letter-spacing: -.02em; color: var(--cream); text-transform: none; }
.bx:not(#_):not(#_) .bx-full .bx-price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bx:not(#_):not(#_) .bx-full .bx-price b { display: block; font: 800 20px/1 var(--sans); color: var(--cream); }
.bx:not(#_):not(#_) .bx-full .bx-price span { font-size: 11.5px; color: var(--dim); font-weight: 600; }
.bx:not(#_):not(#_) .bx-full .bx-lens { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bx:not(#_):not(#_) .bx-full .bx-lens::-webkit-scrollbar { display: none; }
.bx:not(#_):not(#_) .bx-full .bx-len { flex: none; min-width: 52px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(var(--cream-rgb),.22); background: rgba(var(--cream-rgb),.06); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bx:not(#_):not(#_) .bx-full .bx-len[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.bx:not(#_):not(#_) .bx-full .bx-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.bx:not(#_):not(#_) .bx-full .bx-step { display: flex; align-items: center; border-radius: 14px; border: 1px solid rgba(var(--cream-rgb),.22); height: 50px; }
.bx:not(#_):not(#_) .bx-full .bx-step button { width: 44px; height: 48px; display: grid; place-items: center; }
.bx:not(#_):not(#_) .bx-full .bx-step button:disabled { opacity: .3; cursor: default; }
.bx:not(#_):not(#_) .bx-full .bx-step output { min-width: 24px; text-align: center; font: 800 16px/1 var(--sans); font-variant-numeric: tabular-nums; }
.bx:not(#_):not(#_) .bx-full .bx-add { height: 50px; border-radius: 14px; background: var(--gold); color: var(--ink); font: 800 15px/1 var(--sans); display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; white-space: nowrap; }
.bx:not(#_):not(#_) .bx-full .bx-add:disabled { background: rgba(var(--cream-rgb),.14); color: var(--dim); cursor: default; }
.bx:not(#_):not(#_) .bx-full .bx-add .bx-sum { font-weight: 600; opacity: .75; font-variant-numeric: tabular-nums; }
.bx:not(#_):not(#_) .bx-full .bx-add { min-width: 0; }
/* narrow phones (360, 320): the bag total on the button gives way; the price per bundle above stays whole */
@media (max-width: 379px) { .bx:not(#_):not(#_) .bx-full .bx-add .bx-sum { display: none; } }
/* the bag badge pops when a bundle lands in it (motion.js flyToBag; the site header's .dot.pop) */
.bx:not(#_):not(#_) .bx-bagbtn b[data-bagn].pop { animation: badge-pop .6s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
/* the guide line and Try it on (a computer only, as V3) */
.bx:not(#_):not(#_) .bx-full .bx-extra { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bx:not(#_):not(#_) .bx-full .bx-rec { margin: 0; font-size: 12px; line-height: 1.35; color: var(--dim); font-weight: 600; }
.bx:not(#_):not(#_) .bx-full .bx-try { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-gold); color: var(--gold); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }

/* on a phone the guide line and Try it on are hidden, as V3 (the photo keeps V3's size); a computer shows both */
@media (max-width: 899px) { .bx:not(#_):not(#_) .bx-full .bx-extra { display: none; } }
/* In the iPhone and Android apps (:root[data-inapp]) the native tab bar is drawn over the web view's bottom 94 px
   (mobile/src/web/frame.ts BAR_H), as try-on V7 keeps (tryon-v7.site.css): the full view ends where the bar starts. */
@media (max-width: 899px) { :root[data-inapp] .bx:not(#_):not(#_) .bx-full { bottom: 94px; } }
@media (min-width: 900px) {
  .bx:not(#_):not(#_) .bx-full .bx-ftop { padding: 20px 32px 0; }
  .bx:not(#_):not(#_) .bx-room { padding: 150px 460px 60px 60px; }
  .bx:not(#_):not(#_) .bx-room .bx-frame { max-height: none; max-width: none; }
  .bx:not(#_):not(#_) .bx-full .bx-glass { left: auto; right: 32px; top: 50%; bottom: auto; transform: translateY(-50%); width: 380px; padding: 26px; gap: 16px; border-radius: 28px; }
  .bx:not(#_):not(#_) .bx-full .bx-namerow { display: grid; }
  .bx:not(#_):not(#_) .bx-full .bx-price { text-align: left; }
  .bx:not(#_):not(#_) .bx-full .bx-name h2 { font-size: 30px; }
  .bx:not(#_):not(#_) .bx-full .bx-price b { font-size: 28px; }
  .bx:not(#_):not(#_) .bx-full .bx-rec { font-size: 12.5px; }
  .bx:not(#_):not(#_) .bx-full .bx-vnav { right: auto; left: 24px; }
  .bx:not(#_):not(#_) .bx-room .bx-word { font-size: clamp(140px, 15vw, 260px); right: 420px; }
  .bx:not(#_):not(#_) .bx-room .bx-pdots { bottom: -48px; }
}
@media (max-height: 720px) and (max-width: 899px) { .bx:not(#_):not(#_) .bx-room { padding-top: 112px; } }

/* reduced motion: plain fades only. No depth (rise, parallax, scale, fade by scroll) and no bump; the overlay keeps its
   420 ms fade (!important: app.css cuts every transition to .01ms under reduced motion) */
@media (prefers-reduced-motion: reduce) {
  .bx:not(#_):not(#_) .bx-room :is(.bx-wash, .bx-word, .bx-frame) { transform: none !important; }
  .bx:not(#_):not(#_) .bx-room .bx-frame { opacity: 1 !important; }
  .bx:not(#_):not(#_) .bx-full { transition: opacity 420ms linear !important; }
  .bx:not(#_):not(#_) .bx-bagbtn b[data-bagn].pop { animation: none; }
}
.bx.bx-rm:not(#_):not(#_) .bx-room :is(.bx-wash, .bx-word, .bx-frame) { transform: none !important; }
.bx.bx-rm:not(#_):not(#_) .bx-room .bx-frame { opacity: 1 !important; }
.bx.bx-rm:not(#_):not(#_) .bx-full { transition: opacity 420ms linear !important; }
