:root {
  --background: #fafafa;
  --foreground: #0a0a0a;
  --bg-rgb: 250 250 250;
  --fg-rgb: 10 10 10;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  color-scheme: light;
}
[data-theme="dark"] {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --bg-rgb: 10 10 10;
  --fg-rgb: 250 250 250;
  --muted: #888;
  --border: #1e1e1e;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: var(--background);
  color: var(--foreground);
  font-family: Geist, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 1px solid var(--foreground);
  outline-offset: 4px;
}
button:disabled {
  cursor: not-allowed;
}
button,
a,
summary {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#boutique {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: grab;
  background: var(--background);
  isolation: isolate;
}
.contours {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
}
.contours svg {
  width: 100%;
  height: 100%;
}
.title-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.title-big,
.title-small {
  position: absolute;
  margin: 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0.06em 0.22em 0.14em 0.06em;
  line-height: 1;
  overflow: visible;
  transform-style: preserve-3d;
}
.title-big {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(64px, 14vw, 26vh);
  perspective: 480px;
}
.title-small {
  top: 42px;
  left: 30px;
  font-size: 28px;
  perspective: 180px;
  visibility: hidden;
}
.title-layer span {
  display: inline-block;
  will-change: transform, filter, opacity;
  transform-style: preserve-3d;
}
.masthead {
  position: absolute;
  top: 24px;
  left: 32px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s;
}
.masthead p {
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0;
}
#camera {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}
#world {
  position: relative;
}
.look-tile {
  position: absolute;
  width: 188px;
  height: 282px;
  cursor: pointer;
  will-change: transform, opacity;
  outline: none;
  padding: 0;
}
.look-tile:focus-visible:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgb(var(--fg-rgb) / 0.4);
  border-radius: 10px;
}
.look-tile > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: var(--tint, none);
  transform: rotate(var(--pose, 0deg)) scale(var(--image-scale, 1));
  -webkit-user-drag: none;
}
.instruction {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 2;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0;
  transition: opacity 0.4s;
}
.floating-nav {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 6px 0 14px;
  border-radius: 30px;
  background: rgb(var(--bg-rgb) / 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  white-space: nowrap;
}
.floating-nav > button {
  font-size: 13px;
  padding: 0;
}
.floating-nav .nav-logo {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  width: 20px;
}
.theme-controls {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 4px;
  background: rgb(var(--fg-rgb) / 0.025);
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.04);
  border-radius: 30px;
}
.theme-controls button {
  width: 28px;
  height: 26px;
  font-size: 20px;
  line-height: 1;
  opacity: 0.45;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}
.theme-controls button[aria-pressed="true"] {
  opacity: 1;
  background: rgb(var(--fg-rgb) / 0.06);
}
.floating-nav .nav-bag {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #d3d4e3;
  color: #0a0a0a;
  font-size: 19px;
  font-style: italic;
  font-family: "Bodoni Moda";
  font-weight: 500;
  position: relative;
  margin-left: 2px;
}
.nav-bag > span {
  position: absolute;
  font-size: 8px;
  right: 4px;
  top: 3px;
}
#bag-count {
  font-size: 8px;
  vertical-align: super;
  margin-left: 2px;
}
.collection-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 243px;
  border-radius: 24px;
  background: #fafafa;
  color: #0a0a0a;
  z-index: 9;
  font-size: 12px;
  border: 1px solid #00000008;
  box-shadow: 0 12px 30px #0000000d;
  overflow: hidden;
}
.card-top {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.card-top strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.card-top p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 17px;
  color: #888;
}
.card-top > button {
  font-size: 18px;
  line-height: 20px;
  color: #888;
  padding: 0 0 5px 10px;
}
.card-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 20px;
}
.card-links button {
  padding: 0;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.card-actions {
  border-top: 1px solid #e7e7e7;
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.card-actions > button:first-child {
  height: 36px;
  flex: 1;
  background: #0a0a0a;
  color: #fafafa;
  border-radius: 30px;
  font-size: 11px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card-actions > button:last-child {
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  font-size: 15px;
  color: #888;
}
.card-credit {
  border-top: 1px solid #e7e7e7;
  padding: 12px 12px 11px;
  text-align: center;
  font-size: 10px;
  color: #999;
  line-height: 1.5;
}
.card-credit button {
  height: 31px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 12px;
  color: #222;
  padding: 0 16px;
}
.card-credit p {
  font-size: 10px;
  line-height: 15px;
  margin: 7px 0 0;
}
.collection-card.minimized .card-expanded {
  display: none;
}
.collection-card.minimized .card-top {
  padding-bottom: 20px;
}
.close-look {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 7;
  width: 40px !important;
  height: 40px !important;
  background: rgb(var(--bg-rgb) / 0.9) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgb(var(--fg-rgb) / 0.1) !important;
  font-size: 25px !important;
  line-height: 1;
}
.circle-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 300;
  padding: 0;
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  transition:
    border 0.2s,
    background 0.2s;
}
.circle-button:hover {
  border-color: rgb(var(--fg-rgb) / 0.4);
  background: rgb(var(--fg-rgb) / 0.06);
}
#detail-position {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: min(calc(32vw + 25vh + 40px), calc(100vw - 440px));
  transform: translateY(-50%);
  width: min(420px, 36vw);
  cursor: default;
}
#detail-panel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  max-height: 92dvh;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 55%,
    rgba(255, 255, 255, 0.14) 100%
  );
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 30px 80px -16px rgba(0, 0, 0, 0.32),
    0 12px 28px -8px rgba(0, 0, 0, 0.16);
}
#detail-panel:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 128px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}
.panel-scroll {
  position: relative;
  z-index: 2;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.panel-scroll::-webkit-scrollbar {
  display: none;
}
.product-image-stage {
  position: relative;
  width: 100%;
  height: 44vh;
  margin-bottom: 12px;
  background: #e9e7e9;
}
.product-image-stage .detail-shoe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--tint, none);
  transition: opacity 0.45s ease-out;
  pointer-events: none;
  padding: 14px;
  transform: rotate(var(--detail-pose, 0deg)) scale(0.95);
}
.image-steps {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.image-steps span {
  height: 3px;
  border-radius: 10px;
  display: block;
  transition:
    width 0.3s,
    background 0.3s;
  background: #ffffff8c;
  width: 5px;
}
.image-steps span.active {
  width: 18px;
  background: var(--look-accent, #888);
}
.look-number {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 30px;
  background: rgb(var(--bg-rgb) / 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--look-accent);
  color: var(--look-accent);
}
.piece-category {
  position: absolute;
  top: 36px;
  left: 12px;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  color: white;
  background: var(--look-accent, #666);
  z-index: 2;
}
.piece-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(var(--bg-rgb) / 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  box-shadow: 0 2px 5px #0002;
  font-size: 22px;
  line-height: 1;
}
.piece-arrow:hover {
  background: var(--background);
  border-color: rgb(var(--fg-rgb) / 0.4);
}
.piece-arrow.prev {
  left: 12px;
}
.piece-arrow.next {
  right: 12px;
}
.thumbnail-anchor {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 3;
}
.thumbnails {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgb(var(--bg-rgb) / 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
}
.thumb-wrap {
  width: 72px;
  height: 72px;
  position: relative;
  flex-shrink: 0;
}
.thumb {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  opacity: 0.6;
  transition: opacity 0.3s;
  box-shadow: inset 0 0 0 1px #0000000f;
  background: #e9e7e9;
}
.thumb[aria-pressed="true"] {
  opacity: 1;
  box-shadow: inset 0 0 0 1.5px var(--foreground);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--tint, none);
  padding: 3px;
  pointer-events: none;
  transition: transform 0.5s;
  transform: rotate(var(--detail-pose, 0deg)) scale(1.06);
}
.thumb[aria-pressed="true"] img,
.thumb:hover img {
  transform: rotate(var(--detail-pose, 0deg)) scale(1);
}
.thumb-add {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  background: rgb(var(--bg-rgb) / 0.85);
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.thumb-wrap:hover .thumb-add,
.thumb-add:focus-visible,
.thumb-add[aria-pressed="true"] {
  opacity: 1;
}
.thumb-add[aria-pressed="true"] {
  background: var(--foreground);
  color: var(--background);
}
.piece-info {
  padding: 48px 20px 0;
}
.piece-title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.piece-title-line h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.25;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.piece-price {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.piece-material {
  font-size: 11px;
  opacity: 0.6;
  margin: 4px 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 16.5px;
}
.piece-service {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  white-space: nowrap;
}
.size-pill {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  border-radius: 30px;
  padding: 2px 8px;
  white-space: nowrap;
}
.size-pill:hover {
  background: rgb(var(--fg-rgb) / 0.07);
}
.size-choice {
  margin: 10px 20px 0;
  padding: 12px;
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
  border-radius: 14px;
  background: rgb(var(--bg-rgb) / 0.75);
  backdrop-filter: blur(20px);
}
.size-choice header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-bottom: 10px;
}
.size-choice header > button {
  font-size: 9px;
  text-decoration: underline;
  opacity: 0.6;
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.size-grid button {
  padding: 7px 0;
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
  border-radius: 6px;
  font-size: 10px;
}
.size-grid button[aria-pressed="true"] {
  background: var(--foreground);
  color: var(--background);
}
.size-grid button:disabled {
  opacity: 0.25;
  text-decoration: line-through;
}
.add-piece-area {
  padding: 0 20px;
  margin-top: 16px;
}
.add-piece {
  width: 100%;
  padding: 10px 8px;
  border-radius: 30px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgb(var(--fg-rgb) / 0.2);
  transition:
    background 0.2s,
    border-color 0.2s;
  line-height: 15.75px;
}
.add-piece:hover {
  background: rgb(var(--fg-rgb) / 0.04);
  border-color: rgb(var(--fg-rgb) / 0.45);
}
.add-piece[aria-pressed="true"] {
  border-color: var(--foreground);
  background: rgb(var(--fg-rgb) / 0.06);
}
.add-piece .remove-text {
  display: none;
}
.add-piece[aria-pressed="true"]:hover .added-text {
  display: none;
}
.add-piece[aria-pressed="true"]:hover .remove-text {
  display: inline;
}
.panel-divider {
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
}
.panel-divider:before,
.panel-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgb(var(--fg-rgb) / 0.1);
}
.panel-divider span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--look-accent);
}
.rotation-summary {
  padding: 0 20px 20px;
}
.rotation-total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}
.rotation-total-line > span:first-child {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.55;
}
.rotation-total-line > span:last-child {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.buy-rotation {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  border-radius: 30px;
  background: var(--foreground);
  color: var(--background);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 16.5px;
  transition: opacity 0.2s;
}
.buy-rotation:hover {
  opacity: 0.9;
}
.buy-rotation .arrow {
  font-size: 19px;
  letter-spacing: 0;
  line-height: 10px;
  transition: transform 0.2s;
}
.buy-rotation:hover .arrow {
  transform: translateX(2px);
}
dialog {
  padding: 26px;
  border: 1px solid rgb(var(--fg-rgb) / 0.16);
  border-radius: 28px;
  background: var(--background);
  color: var(--foreground);
  max-width: 92vw;
  max-height: 90dvh;
  width: 470px;
  box-shadow: 0 30px 80px #0004;
  overscroll-behavior: contain;
  z-index: 20;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(12px);
}
dialog[open] {
  animation: dialog-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 15px;
}
.dialog-head h2 {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 27px;
  margin: 0;
}
.dialog-brand {
  font:
    italic 500 28px "Bodoni Moda",
    Georgia,
    serif;
}
.micro {
  font-size: 9px;
  letter-spacing: 0.22em;
}
.empty-bag {
  text-align: center;
  padding: 30px 15px 50px;
}
.empty-bag > span {
  font: italic 64px "Bodoni Moda";
  opacity: 0.3;
}
.empty-bag h3 {
  font: italic 22px Georgia;
  font-weight: 400;
  margin: 22px 0 12px;
}
.empty-bag p {
  font-size: 12px;
  opacity: 0.55;
}
.empty-bag button {
  margin-top: 15px;
  font-size: 11px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.3);
  padding: 6px 0;
}
.bag-item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.1);
}
.bag-item-art {
  height: 100px;
  background: rgb(var(--fg-rgb) / 0.05);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.bag-item-art img {
  height: 95px;
  width: 80px;
  object-fit: contain;
  filter: var(--tint, none);
  transform: rotate(var(--detail-pose, 0deg));
  pointer-events: none;
}
.bag-item h3 {
  font: italic 18px Georgia;
  font-weight: 400;
  margin: 0;
}
.bag-item p {
  font-size: 10px;
  opacity: 0.55;
  margin: 5px 0;
}
.bag-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.bag-item-head > span {
  font: italic 15px Georgia;
}
.quantity-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}
.quantity {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  border-radius: 30px;
  padding: 2px;
}
.quantity button {
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 14px;
}
.remove-item {
  font-size: 9px;
  opacity: 0.5;
  text-decoration: underline;
}
.subtotal-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 25px 0 10px;
}
.bag-note {
  font-size: 10px;
  opacity: 0.5;
  line-height: 1.7;
  margin: 0 0 18px;
}
.dialog-copy h2,
#checkout-content h2 {
  font: italic 28px/1.15 Georgia;
  font-weight: 400;
}
.dialog-copy p,
#checkout-content p {
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.65;
}
.dialog-copy ul {
  padding-left: 16px;
  font-size: 12px;
  line-height: 2;
}
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.size-table th {
  text-align: left;
  opacity: 0.5;
  font-weight: 400;
}
.size-table td,
.size-table th {
  padding: 9px 6px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.1);
}
.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.1);
  padding: 15px 0;
}
.checkout-row small {
  display: block;
  font-size: 10px;
  opacity: 0.5;
  margin-top: 6px;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  font: italic 24px Georgia;
  margin: 25px 0;
}
.success-mark {
  font-size: 35px;
  opacity: 0.6;
  text-align: center;
  padding: 10px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 15px);
  opacity: 0;
  padding: 12px 20px;
  border-radius: 30px;
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 5px 20px #0003;
  font-size: 11px;
  z-index: 30;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.3s;
  max-width: 88vw;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.selection-open .masthead {
  opacity: 0.3;
}
.selection-open .instruction {
  opacity: 0;
}

#detail-position,
#close-look {
  touch-action: auto;
}
.size-error {
  font-size: 10px;
  opacity: 0.65;
  margin: 8px 0 0;
}
.visually-loading .look-tile {
  opacity: 0;
}
.selection-open .collection-card {
  pointer-events: auto;
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 767px) {
  #detail-position {
    top: 40dvh;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    transform: none;
  }
  #detail-panel {
    max-height: 100%;
    height: 100%;
  }
  .panel-scroll {
    height: 100%;
    max-height: none;
  }
  .product-image-stage {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .product-image-stage .detail-shoe {
    object-fit: contain;
  }
  .floating-nav {
    gap: 12px;
    height: 43px;
    top: 15px;
    padding-left: 12px;
  }
  .floating-nav > button {
    font-size: 12px;
  }
  .floating-nav .nav-logo {
    font-size: 26px;
  }
  .theme-controls button {
    width: 25px;
    height: 25px;
    font-size: 18px;
  }
  .floating-nav .nav-bag {
    width: 29px;
    height: 29px;
  }
  .floating-nav {
    left: auto;
    right: 16px;
    transform: none;
  }
  .masthead {
    top: 24px;
    left: 32px;
  }
  .masthead p {
    font-size: 8px;
    max-width: 145px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
  .title-small {
    top: 42px;
    left: 30px;
    font-size: 28px;
  }
  .collection-card {
    right: 20px;
    bottom: 20px;
    width: 243px;
  }
  .selection-open .floating-nav {
    opacity: 1;
  }
  .close-look {
    z-index: 10;
  }
  .piece-service {
    font-size: 8px;
    gap: 6px;
    letter-spacing: 0.14em;
  }
  .thumbnails {
    gap: 8px;
  }
  .thumb-wrap {
    width: 72px;
    height: 72px;
  }
  .instruction {
    font-size: 8px;
    max-width: 100px;
    line-height: 1.7;
  }
  .floating-nav .nav-logo {
    display: none;
  }
  .floating-nav .theme-controls {
    gap: 0;
  }
  .floating-nav {
    gap: 10px;
  }
  .floating-nav > button {
    font-size: 11px;
  }
  .selection-open ~ .floating-nav {
    z-index: 8;
  }
  dialog {
    padding: 22px;
  }
  .dialog-head h2 {
    font-size: 25px;
  }
}
@media (max-width: 390px) {
  .floating-nav {
    right: 8px;
    top: 12px;
    gap: 8px;
    padding: 0 5px 0 10px;
  }
  .theme-controls button {
    width: 23px;
  }
  .floating-nav .nav-bag {
    width: 27px;
    height: 27px;
  }
  .piece-service {
    letter-spacing: 0.09em;
    font-size: 7.5px;
  }
  .piece-title-line h2 {
    font-size: 18px;
  }
  .masthead p {
    max-width: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* The reference keeps its floating controls at the same size on phones. */
@media (max-width: 767px) {
  .floating-nav {
    left: 50%;
    right: auto;
    top: 15px;
    transform: translateX(-50%);
    gap: 17px;
    height: 43px;
    padding: 0 6px 0 14px;
  }
  .floating-nav .nav-logo {
    display: block;
    font-size: 28px;
    width: 20px;
  }
  .floating-nav > button {
    font-size: 13px;
  }
  .theme-controls button {
    width: 28px;
    height: 26px;
    font-size: 20px;
  }
  .floating-nav .nav-bag {
    width: 31px;
    height: 31px;
  }
  .masthead p {
    font-size: 10px;
    max-width: none;
    overflow: visible;
  }
  .instruction {
    font-size: 10px;
    max-width: none;
    line-height: 15px;
  }
  .piece-service {
    font-size: 9px;
    letter-spacing: 0.2em;
    gap: 8px;
  }
  .piece-title-line h2 {
    font-size: 19px;
  }
}

/* Matched reference toolbar metrics; labels and brand belong to LUNA NOORÉ. */
.floating-nav {
  top: 14px;
  height: 44px;
  width: 321.296875px;
  gap: 0;
  justify-content: space-between;
  padding: 0 7px 0 16px;
  background: rgb(var(--bg-rgb) / 0.7);
  backdrop-filter: blur(10px);
}
.floating-nav > button {
  font-family: Geist, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
}
.floating-nav .nav-logo {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 28px;
}
.theme-controls {
  height: 36px;
  gap: 2px;
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07);
}
.theme-controls button {
  height: 28px;
  width: 28px;
  opacity: 1;
  color: var(--muted);
  background: transparent;
}
.theme-controls button[aria-checked="true"] {
  color: var(--foreground);
  background: var(--background);
  box-shadow:
    inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07),
    0 1px 3px #0000001f;
}
@media (max-width: 767px) {
  .floating-nav {
    top: 14px;
    height: 44px;
    width: 321.296875px;
    gap: 0;
    padding: 0 7px 0 16px;
  }
  .theme-controls button {
    height: 28px;
    width: 28px;
  }
  .floating-nav .nav-logo {
    font-size: 28px;
  }
  .floating-nav .nav-bag {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 335px) {
  .floating-nav {
    width: calc(100vw - 16px);
  }
}

/* LUNA NOORÉ — pearl, ink and platinum. */
:root {
  --background: #f3f2f4;
  --foreground: #211e26;
  --bg-rgb: 243 242 244;
  --fg-rgb: 33 30 38;
  --muted: #77717e;
  --border: #dcd9df;
}
[data-theme="dark"] {
  --background: #161419;
  --foreground: #efedf1;
  --bg-rgb: 22 20 25;
  --fg-rgb: 239 237 241;
  --muted: #a59da9;
  --border: #38313d;
}
.title-big,
.title-small {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.035em;
}
.title-big {
  font-size: clamp(32px, 8.6vw, 18vh);
}
.title-small {
  font-size: 24px;
  letter-spacing: 0.04em;
}
.piece-title-line h2,
.dialog-copy h2,
.dialog-head h2,
.bag-item h3,
.empty-bag h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: normal;
  font-weight: 400;
}
.piece-title-line h2 {
  font-size: 21px;
}
.piece-price,
.rotation-total-line > span:last-child {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: normal;
}
.nav-logo,
.nav-bag {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: normal;
  font-size: 14px;
  letter-spacing: -0.07em;
}
.card-top strong {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 15px;
}
.masthead p {
  font-size: 9px;
  letter-spacing: 0.17em;
}
.contours {
  opacity: 0.035;
}
.buy-rotation {
  letter-spacing: 0.12em;
  font-size: 10px;
  text-transform: uppercase;
}
.piece-material {
  letter-spacing: 0.02em;
}
.piece-service {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.product-image-stage {
  background: linear-gradient(
    140deg,
    rgb(var(--fg-rgb) / 0.015),
    transparent 55%
  );
}
@media (max-width: 767px) {
  .title-small {
    font-size: 20px;
  }
  .title-big {
    font-size: 8.2vw;
  }
  .piece-title-line h2 {
    font-size: 20px;
  }
  .piece-service {
    font-size: 8px;
    letter-spacing: 0.04em;
  }
}

.floating-nav .nav-logo {
  font-size: 19px;
  font-style: normal;
  letter-spacing: -0.08em;
  width: 24px;
}
.floating-nav .nav-bag {
  font-size: 14px;
  font-style: normal;
}
.collection-card {
  transition:
    opacity 0.35s,
    transform 0.35s;
}
body.selection-open .collection-card {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}
