/* retail box (3D): a product-shot stage, a two-part box with spine and top printing, a drag-to-turn view and an open lid */
.box-stage { position: absolute; inset: 0; z-index: 8; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 46px 0 58px;
  background: radial-gradient(60% 55% at 50% 46%, rgba(255, 240, 220, .16), rgba(255, 240, 220, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, 0) 62%, rgba(255, 255, 255, .05) 62.2%, rgba(0, 0, 0, .35) 100%); }
#box-scene-host { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; user-select: none; }
#box-scene-host.drag { cursor: grabbing; }
.bx-scene { perspective: 1300px; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.bx-stand { position: relative; width: var(--w); height: var(--h); transform: scale(var(--s, 1)); transform-style: preserve-3d; animation: bxfloat 6s ease-in-out infinite; }
@keyframes bxfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.bx-shadow { position: absolute; left: 50%; top: calc(var(--h) + 6px); width: calc(var(--w) * 1.5); height: 34px; margin-left: calc(var(--w) * -.75); background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 68%); filter: blur(3px); transform: translateZ(-60px); pointer-events: none; }
.bx { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, -10deg)) rotateY(var(--ry, -28deg)); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.bx.nt { transition: none; }
.bx-f { position: absolute; box-sizing: border-box; backface-visibility: hidden; overflow: hidden; }
.bx-back { inset: 0; transform: translateZ(calc(var(--d) / -2)); }
.bx-left { top: 0; height: var(--h); width: var(--d); left: 0; transform-origin: left center; transform: rotateY(-90deg); }
.bx-right { top: 0; height: var(--h); width: var(--d); right: 0; transform-origin: right center; transform: rotateY(90deg); }
.bx-top { left: 0; width: var(--w); top: 0; height: var(--d); transform-origin: center top; transform: rotateX(90deg); }
.bx-bottom { left: 0; width: var(--w); bottom: 0; height: var(--d); transform-origin: center bottom; transform: rotateX(-90deg); }
.bx-side { display: flex; align-items: center; justify-content: center; }
.bx-side::after, .bx-top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .12)); pointer-events: none; }
.bx-top::after { background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 70%); }
.bx-seam { position: absolute; left: 0; right: 0; top: 17%; height: 2px; background: linear-gradient(180deg, rgba(0, 0, 0, .4), rgba(255, 255, 255, .16)); }
.bx-spine { writing-mode: vertical-rl; font: 700 var(--fs, 10px) 'Source Sans 3', system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: .9em; }
.bx-spine i { writing-mode: horizontal-tb; font-size: 1.1em; transform: rotate(90deg); }
.bx-spine em { font-style: normal; opacity: .6; font-weight: 600; }
.bx-topmark { display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 var(--fs, 9px) 'Source Sans 3', system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.bx-cover { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: left center; transform: translateZ(calc(var(--d) / 2)); transition: transform .9s cubic-bezier(.3, .8, .2, 1); }
.bx.open .bx-cover { transform: translateZ(calc(var(--d) / 2)) rotateY(-128deg); }
.bx-outer, .bx-under { position: absolute; inset: 0; backface-visibility: hidden; box-sizing: border-box; overflow: hidden; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 22px rgba(0, 0, 0, .18); } .bx-under { transform: rotateY(180deg); }
.bx-art { position: absolute; inset: 0; overflow: hidden; }
.bx-pat { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 18%, #000 78%); mask-image: radial-gradient(circle at 50% 50%, transparent 18%, #000 78%); pointer-events: none; }
.bx-halo { position: absolute; left: 50%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.bx-ln { position: absolute; pointer-events: none; }
.bx-logo { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 12px 'Source Sans 3', system-ui, sans-serif; letter-spacing: .26em; text-transform: uppercase; }
.bx-logo i { font-size: 13px; }
.bx-lg-top { top: 24px; } .bx-lg-bottom { bottom: 16px; }
.bx-lg-center { top: 47%; transform: translateY(-50%) scale(3.3); opacity: .17; letter-spacing: .06em; font-size: 11px; }
.bx-pic { position: absolute; left: 50%; width: 74px; height: 130px; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .5)); z-index: 1; }
.bx-pic .thumb { position: absolute; inset: 0; }
.bx-name { position: absolute; left: 8px; right: 8px; bottom: 36px; text-align: center; font: 700 14px 'Source Sans 3', system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-small { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 600 6.5px 'Source Sans 3', system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; opacity: .55; }
.bx-gloss { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .34) 0, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, .14) 100%); pointer-events: none; }
.bx-shine { position: absolute; top: -10%; bottom: -10%; width: 34%; left: -45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 244, 200, .55), rgba(255, 255, 255, 0)); transform: skewX(-18deg); animation: bxshine 4.8s ease-in-out infinite; pointer-events: none; mix-blend-mode: soft-light; }
@keyframes bxshine { 0%, 55% { left: -45%; } 100% { left: 125%; } }
.bx-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px; }
.bx-well { position: relative; width: 74%; height: 62%; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 4px 10px rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .22); }
.bx-well .bx-ph { position: relative; width: 74px; height: 130px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); } .bx-well .bx-ph .thumb { position: absolute; inset: 0; }
.bx-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font: 600 10px 'Source Sans 3', system-ui, sans-serif; letter-spacing: .06em; opacity: .85; } .bx-acc i { margin-right: 4px; }
.bx-ctl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; }
.bx-hint { font-size: 11px; color: var(--mut, #9a8f80); margin-top: -2px; }
.ph-box { margin-top: 8px; } .ph-box .bx-scene { width: 150px; height: 170px; } .ph-box .bx-stand { animation: none; } .ph-box .bx-shine { display: none; }
/* quick looks */
.bx-looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; }
.bx-look { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line, rgba(255, 255, 255, .12)); background: rgba(255, 255, 255, .03); cursor: pointer; min-height: 40px; min-width: 0; }
.bx-look:hover { border-color: var(--acc, #e0864f); } .bx-look b { font-size: 12px; font-weight: 600; line-height: 1.15; }
.bx-look .sw2 { width: 26px; height: 32px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); display: flex; align-items: flex-end; justify-content: flex-end; } .bx-look .sw2 i { width: 11px; height: 11px; border-radius: 50%; margin: 3px; }
@media (max-height: 520px) and (orientation: landscape) { .box-stage { padding: 40px 0 56px; } .bx-ctl .btn { min-height: 40px; padding: 4px 10px; } .bx-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .bx-stand, .bx-shine { animation: none; } }
