@font-face {
  font-family: InterVariable;
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-display: swap;
}

:root {
  --canvas: #ffffff;
  --ink: #11100d;
  --paper: #f7f7f7;
  --muted: #6f6f6f;
  --line: rgba(17, 16, 13, 0.1);
  --panel: rgba(255, 255, 255, 0.985);
  --accent: #11100d;
  --accent-hover: #000000;
  --accent-text: #ffffff;
  --shadow: 0 22px 60px rgba(17, 16, 13, 0.12);
  --shadow-soft: 0 8px 24px rgba(17, 16, 13, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --close-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42'%3E%3Ccircle cx='21' cy='21' r='19' fill='white' fill-opacity='0.94' stroke='%2311100d' stroke-opacity='0.14'/%3E%3Cpath d='M15 15l12 12M27 15L15 27' stroke='%2311100d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 21 21, pointer;
  background: var(--canvas);
  color: var(--paper);
  font-family: InterVariable, Inter, Arial, sans-serif;
}

.studio-library.is-dark {
  --canvas: #251a13;
  --ink: #f7f0e3;
  --paper: #31231a;
  --muted: #b79f84;
  --line: rgba(247, 240, 227, 0.2);
  --panel: rgba(52, 38, 29, 0.98);
  --accent: #d9a66c;
  --accent-hover: #eec08c;
  --accent-text: #3a271b;
  --shadow: 0 22px 60px rgba(17, 8, 2, 0.58);
  --shadow-soft: 0 8px 24px rgba(17, 8, 2, 0.35);
  --focus-dominant: 255 206 134;
  --close-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42'%3E%3Ccircle cx='21' cy='21' r='19' fill='%232f1f16' fill-opacity='0.86' stroke='%23e9be88' stroke-opacity='0.26'/%3E%3Cpath d='M15 15l12 12M27 15L15 27' stroke='%23ead3ad' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 21 21, pointer;
  color: var(--paper);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.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;
}

.studio-library {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--canvas);
}

.canvas-wordmark {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--ink) 92%, transparent);
  pointer-events: none;
  user-select: none;
  text-align: center;
  white-space: nowrap;
}

.add-product-button {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 6;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(17, 16, 13, 0.24);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.add-product-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--ease);
}

.add-product-button.is-open svg {
  transform: rotate(45deg);
}

.add-product-button.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(17, 16, 13, 0.22);
}

.add-product-button:hover,
.add-product-button:focus-visible {
  transform: scale(1.03);
  background: var(--accent-hover);
}

.studio-library.is-focused .add-product-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.import-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--canvas) 62%, transparent);
  backdrop-filter: blur(6px);
  transition: opacity 180ms var(--ease);
}

.import-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  cursor: var(--close-cursor);
}

.import-card {
  width: min(92vw, 520px);
  border-radius: 20px;
  border: 1px solid rgba(17, 16, 13, 0.07);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(17, 16, 13, 0.14), 0 2px 10px rgba(17, 16, 13, 0.05);
  padding: 20px 20px 16px;
  display: grid;
  gap: 18px;
  cursor: auto;
}

.import-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.15;
}

.import-card input,
.import-card select {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 0 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1;
}

.import-card input::placeholder {
  color: color-mix(in srgb, var(--muted) 92%, transparent);
}

.import-card input:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--ink) 42%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 9%, transparent);
}

.import-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.import-input-row input {
  flex: 1;
  min-width: 0;
}

.import-input-row button[type="submit"] {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 16, 13, 0.16);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.import-input-row button[type="submit"] svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.import-input-row button[type="submit"]:hover,
.import-input-row button[type="submit"]:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 16, 13, 0.2);
  background: var(--accent-hover);
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 66px;
  z-index: 6;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 1;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: scale(1.03);
}

.theme-icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon {
  display: none;
}

.studio-library.is-dark .theme-icon-sun {
  display: none;
}

.studio-library.is-dark .theme-icon-moon {
  display: block;
}

.import-input-row button[type="submit"][disabled] {
  opacity: 0.62;
  cursor: default;
}

.import-status {
  min-height: 0;
  margin-top: -6px;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(17, 16, 13, 0.72);
}

.import-status:not(:empty) {
  min-height: 18px;
  margin-top: 0;
}

.import-overlay[data-open="true"] ~ .add-product-button,
.import-overlay[data-open="true"] + .focus-stage ~ .add-product-button {
  opacity: 0;
  pointer-events: none;
}

.import-overlay[data-open="true"] .add-product-button {
  opacity: 0;
  pointer-events: none;
}

.studio-library[data-import-open="true"] .add-product-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.import-status.is-error {
  color: #a12424;
}

.import-status[data-state="loading"] {
  color: rgba(17, 16, 13, 0.66);
}

.studio-library.is-focused .product-node {
  opacity: 0.54;
  filter: blur(0.9px);
  transform: translate3d(var(--x), var(--y), 0);
  transition-duration: 460ms;
}

.studio-library.is-focused .product-node,
.studio-library.is-focused .product-node img {
  opacity: 0.54 !important;
  filter: blur(0.9px) !important;
}

.studio-library.is-focused .product-node.is-active {
  opacity: 0 !important;
  filter: none;
  transform: translate3d(var(--x), var(--y), 0) scale(1);
  pointer-events: none;
}

.canvas-viewport {
  position: absolute;
  inset: 0;
  overflow: auto;
  cursor: grab;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
}

.canvas-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.product-canvas {
  position: relative;
  width: 2800px;
  height: 3600px;
  min-width: 100vw;
  min-height: 100vh;
}

.product-node {
  position: absolute;
  width: var(--item-size);
  height: var(--item-size);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  transform: translate3d(var(--x), var(--y), 0);
  transition: transform 280ms var(--spring), filter 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
  will-change: transform;
}

.product-node::before {
  display: none;
}

.product-node:hover,
.product-node:focus-visible,
.product-node.is-active {
  transform: translate3d(var(--x), calc(var(--y) - 5px), 0) scale(1.068);
  z-index: 2;
  opacity: 1;
  animation: product-bounce 420ms var(--spring);
}

.product-node.is-drop-target {
  border-radius: 12px;
  outline: none;
  outline-offset: 0;
}

.product-node.is-drop-target::after {
  content: "Drop to replace";
  position: absolute;
  inset: 8px 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 10px;
  color: rgba(17, 16, 13, 0.8);
  background: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  font-weight: 620;
  border: 1px solid rgba(17, 16, 13, 0.1);
  pointer-events: none;
}

.product-node:focus-visible {
  outline: none;
}

.product-node {
  outline: none;
}

.product-node img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(17, 16, 13, 0.04));
  pointer-events: none;
  transform: scale(var(--visual-scale, 0.88));
  transition: filter 320ms var(--ease), transform 320ms var(--ease);
}

.product-transition-clone {
  position: fixed;
  z-index: 20;
  display: block;
  object-fit: contain;
  filter: none;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform;
  backface-visibility: hidden;
}

.product-node:hover img,
.product-node:focus-visible img,
.product-node.is-active img {
  filter: drop-shadow(0 9px 16px rgba(17, 16, 13, 0.14));
}

.product-node[data-sold-out="true"] {
  opacity: 1;
}

@keyframes product-bounce {
  0% {
    transform: translate3d(var(--x), var(--y), 0) scale(1);
  }

  58% {
    transform: translate3d(var(--x), calc(var(--y) - 5px), 0) scale(1.072);
  }

  100% {
    transform: translate3d(var(--x), calc(var(--y) - 5px), 0) scale(1.068);
  }
}

.focus-stage {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 432px);
  gap: clamp(28px, 6vw, 112px);
  align-items: start;
  padding: clamp(18px, 5vw, 76px);
  pointer-events: none;
  opacity: 1;
  transform: none;
  visibility: hidden;
  --focus-tint: 247 247 247;
  transition: visibility 0ms linear 0ms;
}

.drag-replace-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 16, 13, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(17, 16, 13, 0.86);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
  pointer-events: none;
}

.replace-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  justify-content: center;
  transform: translateX(-50%) translateY(-6px);
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 16, 13, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(17, 16, 13, 0.86);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0;
  opacity: 0;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
  pointer-events: none;
}

.focus-stage[data-toast-visible="true"] .drag-replace-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.studio-library[data-toast-visible="true"] .replace-toast {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.focus-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 28% 48%, rgb(var(--focus-tint) / 0.4), rgb(var(--focus-tint) / 0.78));
  opacity: 1;
  transition: background 680ms var(--ease);
}

.focus-stage.is-open {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0ms;
  cursor: var(--close-cursor);
}

.focus-hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: start start;
  padding-left: clamp(10px, 4vw, 74px);
  transform: translateX(0) scale(1);
  opacity: 1;
  visibility: hidden;
  transition: visibility 0ms linear 0ms;
}

.focus-stage.is-open .focus-hero {
  transform: translateX(0) scale(1);
  visibility: visible;
}

.focus-hero img {
  width: auto;
  height: auto;
  max-width: min(56vw, 700px);
  max-height: min(78vh, 700px);
  object-fit: contain;
  filter: none;
  transform-origin: center;
  animation: focus-float 8.5s var(--ease) infinite;
  transition: transform 260ms var(--ease), filter 260ms var(--ease);
  will-change: transform, opacity;
}

.product-card {
  align-self: start;
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  max-height: calc(100vh - 96px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 16, 13, 0.06);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(17, 16, 13, 0.16), 0 2px 10px rgba(17, 16, 13, 0.06);
  color: var(--ink);
  transform: translate3d(0, 8px, 0) scale(0.998);
  opacity: 0;
  visibility: hidden;
  transition:
    visibility 0ms linear 260ms,
    opacity 260ms var(--ease),
    transform 360ms var(--spring);
  backdrop-filter: blur(20px) saturate(1.05);
  transform-origin: center top;
  cursor: auto;
}

.card-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: none;
  gap: 6px;
}

.card-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(17, 16, 13, 0.07);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(1.1);
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.card-actions button:hover,
.card-actions button:focus-visible {
  background: color-mix(in srgb, var(--panel) 86%, var(--ink) 14%);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.card-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.focus-stage.is-card-open .product-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  visibility: visible;
  transition-delay: 0ms;
}

.focus-stage.is-closing .product-card {
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.998);
  visibility: visible;
  transition:
    opacity 180ms var(--ease),
    transform 220ms var(--ease);
}

.product-card > * {
  transform: none;
  transition: none;
}

.focus-stage.is-card-open .product-card > * {
  transform: none;
}

.focus-stage.is-switching .product-card {
  transition: none;
}

.card-media {
  position: relative;
  display: grid;
  min-height: clamp(260px, 42vh, 360px);
  place-items: center;
  margin: 10px;
  padding: 50px 44px 42px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
}

.card-media > span {
  position: absolute;
  top: 16px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.card-media span:first-child {
  left: 16px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--line);
  color: var(--ink);
}

.card-media span:nth-child(2) {
  right: 16px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border: 1px solid var(--line);
  color: var(--ink);
}

.card-media img {
  width: auto;
  height: auto;
  max-width: min(82%, 340px);
  max-height: clamp(190px, 34vh, 300px);
  object-fit: contain;
  filter: none;
  transform: scale(var(--detail-media-scale, 1));
  transform-origin: center;
  will-change: transform;
  transition: transform 180ms var(--ease);
}

.card-content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 6px 28px 28px;
  overflow-y: auto;
}

.card-content h1 {
  margin: 0;
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.04;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.card-meta span:last-child {
  color: var(--ink);
  font-weight: 700;
}

.card-content p[data-detail-description] {
  max-width: 34rem;
  margin: 18px 0 24px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-cta {
  display: inline-flex;
  width: 100%;
  flex-shrink: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  box-shadow: 0 8px 18px rgba(17, 16, 13, 0.16);
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.cart-cta:hover,
.cart-cta:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 12px 24px rgba(17, 16, 13, 0.2);
  transform: translateY(-1px);
}

@keyframes focus-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -12px, 0) scale(1.012);
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .focus-stage {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 432px);
    gap: 22px;
    padding: 24px;
  }

  .focus-hero {
    padding-left: 0;
    place-items: start;
  }

  .focus-hero img {
    max-width: min(46vw, 430px);
    max-height: min(70vh, 540px);
  }
}

@media (max-width: 720px) {
  .canvas-wordmark {
    top: 14px;
    font-size: 20px;
    letter-spacing: -0.005em;
  }

  body {
    min-height: 100dvh;
  }

  .product-canvas {
    width: 100vw;
    height: 100dvh;
  }

  .product-node img {
    filter: drop-shadow(0 1px 2px rgba(17, 16, 13, 0.035));
  }

  .focus-stage {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 0;
    padding: 0;
    cursor: auto;
  }

  .focus-stage::before {
    background: radial-gradient(circle at 50% 18%, rgb(var(--focus-tint) / 0.44), rgb(var(--focus-tint) / 0.8));
  }

  .focus-hero {
    display: none;
  }

  .product-card {
    align-self: end;
    width: 100%;
    max-height: none;
    max-width: 100%;
    margin: 0;
    border: 1px solid rgba(17, 16, 13, 0.065);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -14px 42px rgba(17, 16, 13, 0.16), 0 -2px 10px rgba(17, 16, 13, 0.06);
    transform: translate3d(0, calc(100% + env(safe-area-inset-bottom)), 0) scale(1);
    opacity: 1;
    transition:
      visibility 0ms linear 320ms,
      transform 360ms var(--spring);
    will-change: transform;
    touch-action: pan-y;
  }

  .product-card::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    z-index: 5;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(17, 16, 13, 0.18);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .focus-stage.is-card-open .product-card {
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0ms;
  }

  .focus-stage.is-closing .product-card {
    opacity: 1;
    transform: translate3d(0, calc(100% + env(safe-area-inset-bottom)), 0) scale(1);
    transition:
      transform 280ms var(--ease);
  }

  .product-card.is-dragging-sheet {
    transition: none;
  }

  .card-actions {
    display: none;
  }

  .card-media {
    min-height: clamp(260px, 43dvh, 380px);
    margin: 7px;
    padding: 42px 20px 26px;
    border-radius: 20px;
    border-color: var(--line);
  }

  .card-media img {
    max-width: min(88%, 340px);
    max-height: clamp(190px, 32dvh, 292px);
  }

  .card-media > span {
    top: 14px;
    min-height: 24px;
    font-size: 9px;
  }

  .card-media span:first-child {
    left: 14px;
    max-width: calc(100% - 134px);
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-media span:nth-child(2) {
    display: none;
  }

  .card-content {
    padding: 10px 20px calc(18px + env(safe-area-inset-bottom));
  }

  .card-content h1 {
    font-size: clamp(22px, 6.6vw, 28px);
    line-height: 1.06;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .card-meta {
    margin-top: 10px;
    gap: 6px 12px;
    font-size: 13px;
  }

  .card-content p[data-detail-description] {
    margin: 12px 0 16px;
    padding-top: 12px;
    font-size: 13px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  .cart-cta {
    position: sticky;
    bottom: 0;
    min-height: 50px;
    border-radius: 14px;
    font-size: 14px;
  }

  .import-overlay {
    align-items: end;
    padding: 12px;
  }

  .import-card {
    width: min(100%, 430px);
    margin: 0 auto calc(10px + env(safe-area-inset-bottom));
    padding: 18px;
    border-radius: 22px;
    gap: 12px;
  }

  .import-card h2 {
    font-size: 20px;
  }

  .import-card input,
  .import-input-row button[type="submit"] {
    height: 50px;
  }

  .import-input-row button[type="submit"] {
    width: 50px;
    flex-basis: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
