* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: #f4f1ec;
  color: #111;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 58px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
}
.top-left { display: flex; gap: 22px; flex: 1; }
.top-left a {
  text-decoration: none; color: #111; font-size: 11px; font-weight: 600;
  letter-spacing: .18em;
}
.top-left a.active { border-bottom: 2px solid #111; padding-bottom: 3px; }
.wordmark {
  flex: 1; text-align: center; font-weight: 800; font-size: 17px;
  letter-spacing: .34em; padding-left: .34em;
}
.top-right { flex: 1; display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { position: relative; background: none; border: none; cursor: pointer; padding: 6px; color: #111; }
.bag-count {
  position: absolute; top: -1px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #111; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- orbit view ---------- */
.stage { position: fixed; inset: 58px 0 30px 0; overflow: hidden; touch-action: none; cursor: grab; }
.stage.dragging { cursor: grabbing; }
.orbit-head { position: absolute; top: 4%; left: 34px; z-index: 10; pointer-events: none; }
.orbit-count { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #777; }
.orbit-name {
  font-size: clamp(44px, 6.4vw, 84px); font-weight: 900; line-height: .94;
  letter-spacing: -.015em; margin: 10px 0 12px; text-transform: uppercase;
  transition: opacity .25s;
}
.orbit-name.swap { animation: nameIn .4s ease; }
@keyframes nameIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.orbit-price { font-size: 15px; font-weight: 600; }
.details-link {
  pointer-events: auto; background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: #111; margin-top: 8px; padding: 0 0 2px;
  border-bottom: 1px solid #111; letter-spacing: .03em;
}

.orbit-field { position: absolute; inset: 0; }
.orbit-shoe {
  position: absolute; top: 0; left: 0; width: min(34vw, 470px);
  will-change: transform, opacity; cursor: pointer;
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .5s;
}
.orbit-shoe img {
  width: 100%; display: block; pointer-events: none;
  filter: drop-shadow(0 26px 22px rgba(0,0,0,.18));
  animation: floaty 4.5s ease-in-out infinite;
}
.orbit-shoe:nth-child(2) img { animation-duration: 5.2s; animation-delay: -.7s; }
.orbit-shoe:nth-child(3) img { animation-duration: 4s; animation-delay: -1.4s; }
.orbit-shoe:nth-child(4) img { animation-duration: 5.6s; animation-delay: -2s; }
@keyframes floaty { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }

.watermark {
  position: absolute; left: 50%; bottom: -4.5vw; transform: translateX(-50%);
  font-size: 15.5vw; font-weight: 900; letter-spacing: .01em; line-height: 1;
  color: rgba(0,0,0,.055); white-space: nowrap; pointer-events: none;
}

.wheel-wrap {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: min(300px, 60vw); z-index: 10;
}
.wheel-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; color: #999; margin-bottom: 7px;
}
.wheel-track {
  position: relative; height: 4px; border-radius: 4px; background: #d8d3c9; cursor: pointer;
  touch-action: none;
}
.wheel-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  border-radius: 4px; background: #111; transition: width .3s;
}
.wheel-handle {
  position: absolute; top: 50%; left: 0%; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid #111; transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: left .3s; cursor: grab;
}
.wheel-hint {
  text-align: center; font-size: 9px; font-weight: 600; letter-spacing: .3em;
  color: #999; margin-top: 9px;
}

/* ---------- focused view ---------- */
.focused {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: #f4f1ec; overflow: hidden;
}
.focused.open { display: block; }
.focused-close {
  position: absolute; top: 74px; right: 30px; z-index: 5;
  background: none; border: none; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; cursor: pointer; color: #111;
}
.focused-shoe-zone {
  position: absolute; top: 58px; left: 0; bottom: 110px; width: 58%;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none; perspective: 1300px;
}
.focused-shoe-zone.dragging { cursor: grabbing; }
.flip { position: relative; width: min(46vw, 640px); perspective: 1200px; }
.flip.swap { animation: colorSwap .34s ease; }
@keyframes colorSwap {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: .25; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}
.flip.enter { animation: shoeIn .5s cubic-bezier(.2,1.1,.4,1); }
@keyframes shoeIn { from { opacity: 0; transform: translateX(50px) scale(.92); } to { opacity: 1; transform: none; } }
.flip-inner { position: relative; transform-style: preserve-3d; }
.face {
  display: block; width: 100%; object-fit: contain; pointer-events: none;
  backface-visibility: hidden;
  filter: drop-shadow(0 30px 26px rgba(0,0,0,.20));
  transition: opacity .1s;
}
.face.back { position: absolute; inset: 0; transform: rotateY(180deg) scaleX(-1); }
.floor-shadow {
  position: absolute; left: 50%; bottom: 12%; width: 44%; height: 24px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.22), transparent 70%);
  pointer-events: none;
}
.rotate-hint {
  position: absolute; left: 0; right: 0; bottom: 4%; text-align: center;
  font-size: 10px; letter-spacing: .26em; color: #a39e94; pointer-events: none; white-space: nowrap;
}

.focused-panel { position: absolute; top: 22%; right: 9%; width: 330px; z-index: 5; }
.focused-panel.enter { animation: panelIn .45s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.focused-name { font-size: 36px; font-weight: 900; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.focused-price { font-size: 15px; font-weight: 600; margin-top: 10px; }
.focused-color { font-size: 13px; color: #777; margin-top: 6px; }
.focused-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; color: #999; margin: 22px 0 10px; }
.focused-label span { color: #111; font-weight: 600; letter-spacing: .03em; text-transform: none; }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size-grid.pulse { animation: pulse .4s ease; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.size-cell {
  height: 40px; border: 1px solid #d8d3c9; border-radius: 8px; background: transparent;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; color: #111;
}
.size-cell:hover { border-color: #111; }
.size-cell.active { background: #111; color: #fff; border-color: #111; }
.colorways { display: flex; gap: 10px; }
.colorway {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #f4f1ec;
  cursor: pointer; box-shadow: 0 0 0 1px #c9c4ba; transition: .15s;
}
.colorway.active { box-shadow: 0 0 0 2px #111; transform: scale(1.12); }
.cta-btn {
  width: 100%; margin-top: 24px; padding: 16px; border: none; border-radius: 999px;
  background: #cfccc4; color: #555; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; cursor: pointer; transition: .2s;
}
.cta-btn.ready { background: #111; color: #fff; }
.cta-btn.ready:hover { transform: translateY(-1px); }
.focused-panel .details-link { margin-top: 16px; }
.focused-desc {
  display: none; font-size: 13px; line-height: 1.6; color: #777; margin-top: 14px;
  max-width: 320px;
}
.focused-desc.show { display: block; animation: panelIn .3s ease; }

.thumbs {
  position: absolute; left: 34px; bottom: 34px; display: flex; flex-wrap: wrap; gap: 10px; z-index: 5;
  max-width: 44vw;
}
.thumb {
  width: 62px; height: 52px; border-radius: 10px; border: 1px solid #d8d3c9;
  background: #ece9e2; padding: 5px; cursor: pointer; transition: .15s; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.thumb.active { border-color: #111; box-shadow: 0 0 0 1px #111; }
.pager {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px; z-index: 5;
}
.page-num { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: #777; }
.page-arrow {
  background: none; border: none; font-size: 18px; cursor: pointer; color: #111; padding: 4px 8px;
}

/* ---------- toast / footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(20px);
  background: #111; color: #fff; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 90; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.foot {
  position: fixed; left: 0; right: 0; bottom: 0; height: 30px; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #9a968f; letter-spacing: .04em;
}
.foot a { color: #111; font-weight: 700; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .top-left { display: none; }
  .wordmark { text-align: left; padding-left: 0; }
  .orbit-head { left: 20px; top: 2%; }
  .orbit-shoe { width: 62vw; }
  .focused { overflow-y: auto; }
  .focused-shoe-zone { position: relative; width: 100%; height: 42vh; top: 58px; bottom: auto; }
  .flip { width: 86vw; }
  .focused-panel { position: relative; top: 0; right: 0; width: auto; padding: 8px 24px 0; }
  .thumbs { position: relative; left: 0; bottom: 0; padding: 20px 24px; }
  .pager { position: relative; left: 0; bottom: 0; transform: none; justify-content: center; padding-bottom: 24px; }
  .focused-close { top: 68px; right: 18px; }
  .watermark { font-size: 22vw; bottom: 8%; }
}
