:root {
  color-scheme: dark;
  --ink: #f5efe6;
  --muted: rgba(245, 239, 230, 0.68);
  --dim: rgba(245, 239, 230, 0.44);
  --black: #050505;
  --accent: #ff3a2f;
  --line: rgba(245, 239, 230, 0.18);
  --header-height: 76px;
  --guide-margin: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    0
    max(clamp(18px, 4vw, 56px), calc(env(safe-area-inset-right) + 154px))
    0
    clamp(18px, 4vw, 56px);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

.header-module {
  pointer-events: auto;
}

.site-header[data-logo-position="left"] .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-header[data-logo-position="center"] .brand-mark {
  position: absolute;
  left: 50%;
  transform: translate(calc(-50% + var(--edit-x, 0px)), var(--edit-y, 0px));
}

.site-header[data-logo-position="center"] .nav-links {
  margin-left: 0;
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translate(var(--edit-x, 0px), var(--edit-y, 0px));
}

.brand-mark.is-logo-pending {
  min-width: 54px;
  min-height: 54px;
}

.brand-mark.is-logo-pending span {
  visibility: hidden;
}

.brand-mark.is-logo-unavailable {
  min-width: 54px;
  min-height: 54px;
  align-items: center;
}

.brand-mark.is-logo-unavailable span {
  display: none;
}

.brand-mark.is-logo-unavailable::before {
  content: "Logo unavailable";
  max-width: 54px;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: none;
}

.brand-mark span:first-child {
  font-size: 1.1rem;
}

.brand-mark span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.brand-mark.has-image-logo {
  align-items: center;
}

.brand-mark.has-image-logo span {
  display: none;
}

.brand-mark [data-brand-logo-image] {
  width: var(--logo-image-w, 104px);
  height: var(--logo-image-h, auto);
  max-width: min(220px, 38vw);
  max-height: 54px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a,
.nav-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links button:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.commerce-actions {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 240;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: right 220ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

body.product-preview-open .commerce-actions {
  right: calc(max(18px, env(safe-area-inset-right)) + 54px);
}

body.product-editor-open .commerce-actions {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.cart-entry-link,
.account-entry-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 31px;
  border: 1px solid rgba(245, 239, 230, 0.22);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.34);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cart-entry-link {
  padding: 0 12px;
}

.cart-entry-label {
  line-height: 1;
}

.account-entry-link {
  width: 31px;
  padding: 0;
}

.acceptance-account-menu[hidden] {
  display: none;
}

.acceptance-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 172px;
  padding: 8px;
  border: 1px solid rgba(245, 239, 230, 0.22);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.88);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.acceptance-account-menu > span {
  display: block;
  padding: 5px 8px 7px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.acceptance-account-menu [data-acceptance-identities] {
  display: grid;
  gap: 2px;
}

.acceptance-account-menu button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.acceptance-account-menu button:hover,
.acceptance-account-menu button[aria-current="true"] {
  background: rgba(245, 239, 230, 0.11);
}

.acceptance-account-menu button:disabled {
  color: var(--muted);
  cursor: wait;
}

.account-entry-link span {
  position: relative;
  width: 17px;
  height: 17px;
  border: 1.25px solid currentColor;
  border-radius: 999px;
}

.account-entry-link span::before,
.account-entry-link span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.account-entry-link span::before {
  top: 3.4px;
  width: 4.8px;
  height: 4.8px;
  background: currentColor;
  border: 0;
  border-radius: 999px;
}

.account-entry-link span::after {
  bottom: 3.1px;
  width: 9.8px;
  height: 4.8px;
  border: 1.2px solid currentColor;
  border-radius: 999px 999px 4px 4px;
  opacity: 0.94;
}

.cart-entry-link.has-items {
  border-color: rgba(245, 239, 230, 0.34);
  color: var(--ink);
}

.cart-entry-link:hover,
.account-entry-link:hover {
  border-color: rgba(245, 239, 230, 0.4);
  color: var(--ink);
  transform: translateY(-1px);
}

.cart-entry-link.is-cart-updated {
  border-color: rgba(255, 58, 47, 0.72);
  color: var(--ink);
}

.cart-entry-link.is-cart-updated::after {
  content: attr(data-cart-feedback);
  position: absolute;
  right: 4px;
  bottom: -8px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
  animation: cartFeedbackFly 640ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.cart-entry-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.64rem;
  line-height: 1;
}

.cart-entry-link.is-cart-updated .cart-entry-count {
  animation: cartCountPop 520ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.cart-entry-count[hidden] {
  display: none;
}

body.shop-menu-open[data-bag-mode="compact"] .commerce-actions {
  gap: 6px;
}

body.shop-menu-open[data-bag-mode="compact"] .cart-entry-link {
  gap: 6px;
  padding-inline: 9px;
  font-size: 0.74rem;
}

body.shop-menu-open[data-bag-mode="icon"] .commerce-actions {
  gap: 5px;
}

body.shop-menu-open[data-bag-mode="icon"] .cart-entry-link {
  width: 31px;
  min-width: 31px;
  padding: 0;
  gap: 0;
}

body.shop-menu-open[data-bag-mode="icon"] .cart-entry-label {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0;
}

body.shop-menu-open[data-bag-mode="icon"] .cart-entry-label::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 12px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
  transform: translateX(-50%);
}

body.shop-menu-open[data-bag-mode="icon"] .cart-entry-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 7px;
  height: 6px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

body.shop-menu-open[data-bag-mode="icon"] .cart-entry-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  font-size: 0.58rem;
}

@keyframes cartCountPop {
  0% {
    transform: scale(0.72);
  }

  45% {
    transform: scale(1.28);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes cartFeedbackFly {
  0% {
    opacity: 0;
    transform: translate(-22px, 22px) scale(0.74);
  }

  35% {
    opacity: 1;
    transform: translate(-8px, 2px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(0, -18px) scale(0.82);
  }
}

.edit-entry-link {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 44;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(5, 5, 5, 0.52);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.edit-entry-link[hidden] {
  display: none;
}

.edit-entry-link:hover {
  border-color: rgba(245, 239, 230, 0.38);
  color: var(--ink);
  transform: translateY(-1px);
}

.cart-sheet[hidden] {
  display: none;
}

body.cart-sheet-open,
body.shop-menu-open {
  overflow: hidden;
}

.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 260;
  color: #050505;
}

.cart-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.cart-sheet-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(420px, 100vw);
  background: rgba(245, 244, 239, 0.98);
  box-shadow: -24px 0 58px rgba(0, 0, 0, 0.22);
  animation: cartSheetIn 260ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.cart-sheet-panel header,
.cart-sheet-panel footer {
  padding: 18px;
}

.cart-sheet-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(5, 5, 5, 0.1);
}

.cart-sheet-panel header p,
.cart-sheet-panel footer span,
.cart-sheet-panel footer small {
  margin: 0;
  color: rgba(5, 5, 5, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-sheet-panel header button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 999px;
  background: transparent;
  color: #050505;
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-sheet-lines {
  display: grid;
  align-content: start;
  gap: 0;
  overflow-y: auto;
}

.cart-sheet-empty {
  margin: 0;
  padding: 28px 18px;
  color: rgba(5, 5, 5, 0.56);
  font-size: 0.92rem;
  font-weight: 800;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  border-bottom: 1px solid rgba(5, 5, 5, 0.08);
  padding: 16px 18px;
}

.cart-line img {
  width: 76px;
  height: 92px;
  object-fit: cover;
  background: #e8e3d8;
}

.cart-line-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cart-line strong,
.cart-line b {
  color: #050505;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.18;
}

.cart-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line span,
.cart-line small {
  color: rgba(5, 5, 5, 0.58);
  font-size: 0.72rem;
  font-weight: 820;
}

.cart-line-summary {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cart-line-quantity {
  display: inline-grid;
  grid-template-columns: 30px 42px 30px;
  align-items: center;
  width: max-content;
  overflow: hidden;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.cart-line-quantity button,
.cart-line-remove {
  border: 0;
  background: transparent;
  color: #050505;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.cart-line-quantity button {
  min-height: 30px;
  padding: 0;
  font-size: 0.86rem;
}

.cart-line-quantity button:disabled {
  opacity: 0.28;
  cursor: default;
}

.cart-line-quantity output {
  color: #050505;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
}

.cart-line-remove {
  min-height: 28px;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(5, 5, 5, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.cart-line-remove:hover {
  border-color: rgba(5, 5, 5, 0.22);
  color: #050505;
}

.cart-sheet-panel footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(5, 5, 5, 0.1);
}

.cart-sheet-panel footer > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.cart-sheet-panel footer strong {
  font-size: 1.8rem;
  line-height: 1;
}

.cart-sheet-panel footer button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: white;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.cart-sheet-panel footer button:disabled {
  opacity: 0.36;
  cursor: default;
}

.cart-sheet-panel footer small {
  color: rgba(5, 5, 5, 0.46);
  line-height: 1.42;
  letter-spacing: 0;
  text-transform: none;
}

@keyframes cartSheetIn {
  from {
    transform: translateX(24px);
    opacity: 0.82;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .cart-sheet-panel {
    top: auto;
    left: 0;
    width: 100vw;
    max-height: min(78svh, 680px);
    border-radius: 16px 16px 0 0;
    animation-name: cartSheetUp;
  }

  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 92px;
    padding: 14px 16px;
  }

  .cart-line img {
    width: 64px;
    height: 76px;
  }

  .cart-line-quantity {
    grid-template-columns: 28px 36px 28px;
  }

  .cart-line-summary {
    gap: 8px;
  }

  .cart-line-remove {
    padding: 0 8px;
  }
}

@keyframes cartSheetUp {
  from {
    transform: translateY(24px);
    opacity: 0.86;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.shop-page[hidden] {
  display: none;
}

.shop-page {
  position: fixed;
  inset: 0;
  z-index: 230;
  overflow-y: auto;
  background: #f4f1ea;
  color: #050505;
}

.shop-page-header {
  --shop-header-height: 58px;
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(104px, 1fr) auto minmax(104px, 1fr);
  align-items: center;
  min-height: var(--shop-header-height);
  padding: 0 clamp(14px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.24)),
    rgba(244, 241, 234, 0.32);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.62),
    0 18px 44px rgba(5, 5, 5, 0.08);
  backdrop-filter: blur(24px) saturate(1.35);
}

body.shop-menu-open .commerce-actions {
  top: max(13px, env(safe-area-inset-top));
}

.shop-page-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #050505;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-page-back {
  color: rgba(5, 5, 5, 0.42);
  font-size: 1.1rem;
  line-height: 1;
}

.shop-page-brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.shop-page-brand-mark strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.shop-page-brand-mark small {
  color: rgba(5, 5, 5, 0.48);
  font-size: 0.68rem;
  font-weight: 850;
}

.shop-page-brand-mark.has-image-logo strong,
.shop-page-brand-mark.has-image-logo small {
  display: none;
}

.shop-page-brand-mark [data-shop-logo-image] {
  width: var(--logo-image-w, 104px);
  height: var(--logo-image-h, auto);
  max-width: min(180px, 34vw);
  max-height: 36px;
  object-fit: contain;
}

.shop-page-brand:hover .shop-page-back,
.shop-page-brand:hover small {
  color: #050505;
}

.shop-filter-menu {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(5, 5, 5, 0.48);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.shop-filter-menu button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.shop-filter-menu button[aria-pressed="true"] {
  color: #050505;
}

.shop-product-grid {
  --shop-grid-columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--shop-grid-columns), minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-items: start;
  align-content: start;
  gap: 1px;
  min-height: calc(100svh - var(--shop-header-height, 58px));
  background: rgba(5, 5, 5, 0.1);
}

.shop-page-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: calc(var(--header-height) + 34px) 24px;
  background: #f4f1ea;
  color: rgba(5, 5, 5, 0.56);
  font-size: 0.86rem;
  font-weight: 800;
}

.shop-product-card {
  align-self: start;
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  border: 0;
  padding: 0;
  background: #f4f1ea;
  color: #050505;
  text-align: left;
  cursor: pointer;
  transition: min-height 260ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.shop-product-card figure {
  display: grid;
  place-items: center;
  aspect-ratio: var(--shop-image-aspect, 3 / 4);
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: #ebe5da;
}

.shop-product-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.shop-product-card:hover img {
  transform: scale(1.025);
}

.shop-product-card span {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px 18px;
}

.shop-product-card small,
.shop-product-card strong,
.shop-product-card b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-card small {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-product-card strong {
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 950;
  line-height: 1.12;
}

.shop-product-card b {
  font-size: 0.86rem;
  font-weight: 900;
}

@keyframes shopMenuIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 640px) {
  .shop-page-header {
    --shop-header-height: 45px;
    grid-template-columns: minmax(38px, var(--shop-brand-max, 64px)) minmax(0, 1fr) var(
        --shop-commerce-width,
        149px
      );
    grid-template-rows: 1fr;
    column-gap: 7px;
    min-height: var(--shop-header-height);
    padding: 0 12px;
  }

  body.shop-menu-open .commerce-actions {
    top: max(7px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }

  .shop-page-brand {
    grid-column: 1;
    grid-row: 1;
    gap: 4px;
    max-width: var(--shop-brand-max, 150px);
    min-height: 31px;
    min-width: 0;
    overflow: hidden;
  }

  .shop-page-brand-mark small {
    display: none;
  }

  .shop-page-brand-mark {
    min-width: 0;
    max-width: calc(var(--shop-brand-max, 150px) - 10px);
    overflow: hidden;
  }

  .shop-page-brand-mark strong {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shop-page-brand-mark [data-shop-logo-image] {
    width: auto;
    height: auto;
    max-width: calc(var(--shop-brand-max, 150px) - 10px);
    max-height: 31px;
  }

  .shop-filter-menu {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: clamp(8px, 2vw, 11px);
    font-size: 0.62rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .shop-filter-menu::-webkit-scrollbar {
    display: none;
  }

  .shop-filter-menu button {
    flex: 0 0 auto;
  }

  .shop-page-header[data-filter-overflow="true"] .shop-filter-menu {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 2px;
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }

  .shop-product-grid {
    --shop-grid-columns: 2;
    grid-template-columns: repeat(var(--shop-grid-columns), minmax(0, 1fr));
  }

  .shop-product-card {
    min-height: var(--shop-card-min-height, 310px);
  }

  .shop-product-card span {
    padding: 11px 12px 14px;
  }

  .shop-product-card strong {
    font-size: 0.8rem;
  }
}

.cinema {
  background: #050505;
}

.scene {
  position: relative;
  top: 0;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene + .scene {
  margin-top: -1px;
}

.scene::after {
  content: "";
  position: absolute;
  left: clamp(20px, 4vw, 58px);
  right: clamp(20px, 4vw, 58px);
  bottom: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  z-index: 4;
}

.scene-image,
.scene-shade {
  position: absolute;
  inset: 0;
}

.scene-image {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--image-fit, cover);
  object-position: var(--image-x, 56%) var(--image-y, 42%);
  background: #050505;
  transform: scale(var(--image-scale, 1.035));
  filter: saturate(0.9) contrast(1.04);
  transition:
    transform 1300ms cubic-bezier(0.2, 0.78, 0.2, 1),
    filter 1300ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.scene.is-visible .scene-image {
  transform: scale(var(--image-visible-scale, 1));
  filter: saturate(0.98) contrast(1.05);
}

.scene-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 58, 47, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.48)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
  opacity: 1;
  transition:
    opacity 420ms ease,
    background 420ms ease;
}

.scene.has-product-focus .scene-image {
  filter: saturate(1.08) contrast(1.08) brightness(1.14);
  transform: scale(1.012);
}

.scene.has-product-focus .scene-shade {
  opacity: 0.28;
}

.scene-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin: 0 0 clamp(92px, 12vh, 138px) clamp(20px, 5vw, 72px);
  opacity: 0;
  translate: var(--edit-x, 0) var(--edit-y, 0);
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.product-hotspot {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  z-index: 3;
  width: var(--hotspot-w);
  height: var(--hotspot-h);
  min-width: 96px;
  min-height: 72px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.product-hotspot::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.product-hotspot span {
  position: absolute;
  left: 50%;
  bottom: -26px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(245, 239, 230, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(5, 5, 5, 0.54);
  color: rgba(245, 239, 230, 0.84);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  backdrop-filter: blur(14px);
}

.product-hotspot:hover::before,
.product-hotspot:focus-visible::before {
  opacity: 1;
}

.product-hotspot:hover::before,
.product-hotspot:focus-visible::before,
.edit-mode .scene.has-product-focus .product-hotspot::before {
  transform: scale(1);
}

.product-hotspot:hover span,
.product-hotspot:focus-visible span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-hotspot:focus-visible {
  outline: 2px solid rgba(255, 58, 47, 0.86);
  outline-offset: 6px;
}

.product-hotspot.is-unbound {
  opacity: 0;
  pointer-events: none;
}

.edit-mode .product-hotspot.is-unbound {
  opacity: 1;
  pointer-events: auto;
}

@keyframes hotspotMobilePulse {
  0% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.78);
  }

  62% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.72);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.72);
  }
}

@media (max-width: 640px), (hover: none), (pointer: coarse) {
  .product-hotspot {
    min-width: 74px;
    min-height: 58px;
  }

  .product-hotspot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 58, 47, 0.48);
    border-radius: 999px;
    background:
      radial-gradient(circle, rgba(255, 58, 47, 0.9) 0 14%, rgba(255, 58, 47, 0.16) 15% 45%, transparent 47%);
    box-shadow: 0 0 18px rgba(255, 58, 47, 0.2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: hotspotMobilePulse 2.7s ease-out infinite;
  }

  .product-hotspot span,
  .product-hotspot:hover span,
  .product-hotspot:focus-visible span {
    opacity: 0;
    transform: translate(-50%, 4px);
  }

  .scene.has-product-focus .product-hotspot::after {
    opacity: 0.22;
    animation: none;
  }
}

.scene-copy.is-right {
  justify-self: end;
  margin-left: 20px;
  margin-right: clamp(20px, 5vw, 72px);
}

.scene.is-visible .scene-copy {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scene h1,
.scene h2,
.access-content h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  letter-spacing: 0;
}

.scene h1 {
  font-size: clamp(4.6rem, 13vw, 12.8rem);
  line-height: 0.88;
}

.scene h1 span {
  display: block;
}

.scene h2 {
  max-width: 720px;
  overflow-wrap: anywhere;
  font-size: clamp(3.2rem, 7vw, 7.6rem);
  line-height: 0.98;
}

.scene-line {
  width: min(540px, 100%);
  margin: 44px 0 0;
  color: rgba(245, 239, 230, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.ghost-link,
.signup-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-link,
.signup-form button {
  background: var(--ink);
  color: #111;
}

.ghost-link {
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.primary-link:hover,
.ghost-link:hover,
.signup-form button:hover {
  transform: translateY(-2px);
}

.ghost-link:hover {
  border-color: rgba(245, 239, 230, 0.42);
  background: rgba(245, 239, 230, 0.08);
}

.scene-meta {
  position: absolute;
  right: clamp(20px, 4vw, 58px);
  bottom: 44px;
  z-index: 2;
  display: flex;
  gap: 16px;
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.access-section {
  position: relative;
  z-index: 10;
  min-height: min(760px, 100svh);
  display: grid;
  align-items: center;
  padding: clamp(74px, 10vw, 142px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0), #050505 10%),
    #050505;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.access-content {
  width: min(840px, 100%);
}

.access-content h2 {
  max-width: 760px;
  font-size: clamp(2.65rem, 6vw, 6.5rem);
  line-height: 1;
}

.signup-form {
  width: min(560px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.signup-form [hidden] {
  display: none;
}

.signup-form input,
.payment-select select {
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.signup-form input {
  flex: 1 1 260px;
}

.signup-form input::placeholder {
  color: rgba(245, 239, 230, 0.42);
}

.signup-form input:focus,
.payment-select select:focus {
  border-color: rgba(245, 239, 230, 0.54);
  background: rgba(255, 255, 255, 0.1);
}

.preference-drawer {
  flex: 1 1 100%;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(245, 239, 230, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.preference-drawer[hidden] {
  display: none;
}

.product-preview[hidden] {
  display: none;
}

.product-preview {
  --product-bar-height: clamp(118px, 16svh, 168px);
  position: fixed;
  inset: 0;
  z-index: 250;
  display: block;
  color: #050505;
  background: #f3f1eb;
  overscroll-behavior: contain;
}

body.product-preview-open {
  overflow: hidden;
}

body.image-lightbox-open {
  overflow: hidden;
}

.product-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  touch-action: none;
}

.product-preview-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100svh;
  padding-bottom: clamp(150px, 18svh, 210px);
  overflow: hidden auto;
  background: #f3f1eb;
  scroll-behavior: auto;
  box-shadow: none;
  overscroll-behavior: contain;
  touch-action: pan-y;
  animation: productPreviewIn 360ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.product-preview-close {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  top: max(18px, env(safe-area-inset-top));
  z-index: 6;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.52);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.product-preview-media {
  position: relative;
  flex: 0 0 auto;
  height: var(--product-media-height, calc(100svh - 132px));
  min-height: 0;
  overflow: hidden;
  background: #f5f4ef;
  cursor: zoom-in;
  isolation: isolate;
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior: contain;
  transition: height 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-preview-track {
  position: relative;
  display: flex;
  gap: 0;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  will-change: scroll-position;
}

.product-preview-track::-webkit-scrollbar {
  display: none;
}

.product-preview-media.is-dragging .product-preview-track {
  cursor: grabbing;
  scroll-snap-type: none;
}

.product-preview-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #f5f4ef;
}

.product-preview-media img,
.product-preview-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--product-preview-focus-x, 50%) var(--product-preview-focus-y, 50%);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
  background: transparent;
  transform: translateZ(0) scale(1);
}

.product-preview-slide img {
  position: absolute;
  inset: 0;
}

.product-preview-media > [data-product-preview-image][hidden] {
  display: none;
}

.product-preview-media.is-dragging img {
  transform: translateZ(0) scale(0.998);
}

.product-preview-count {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.44);
  box-shadow: inset 0 0 0 1px rgba(245, 239, 230, 0.14);
  color: rgba(245, 239, 230, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 28px;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.product-preview-dots {
  position: absolute;
  left: var(--product-preview-progress-center-x, 50%);
  bottom: 5px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: min(var(--product-preview-progress-width, 80%), calc(100% - 28px));
  pointer-events: auto;
  transform: translateX(-50%);
}

.product-preview-dots button {
  flex: 1 1 0;
  width: auto;
  height: 2px;
  min-height: 2px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.product-preview-dots button[aria-current="true"] {
  background: #fff;
}

.product-preview-dots button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 5px;
}

.product-preview-nav,
.image-lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.68;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.product-preview-nav {
  z-index: 3;
}

.image-lightbox-nav {
  z-index: 2;
}

.product-preview-nav:hover,
.image-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.product-preview-nav[hidden],
.image-lightbox-nav[hidden] {
  display: none;
}

.product-preview-nav.is-previous {
  left: max(18px, env(safe-area-inset-left));
}

.product-preview-nav.is-next {
  right: max(18px, env(safe-area-inset-right));
}

.product-preview-copy {
  --product-preview-title-size: 2.35rem;
  --product-preview-title-lines: 2;
  --product-preview-description-size: 0.88rem;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "copy meta actions"
    "copy meta actions"
    "copy note actions";
  grid-template-rows: 12px minmax(38px, 1fr) 34px;
  align-items: start;
  gap: 8px clamp(20px, 2.2vw, 34px);
  height: clamp(132px, 17svh, 188px);
  max-height: min(34svh, 208px);
  overflow: hidden;
  padding: 18px max(20px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  border-top: 1px solid rgba(5, 5, 5, 0.1);
  background: rgba(243, 241, 235, 0.92);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.product-preview-copy p,
.product-preview-copy h2,
.product-preview-copy dl,
.product-preview-copy dd {
  margin: 0;
}

.product-preview-copy > p:first-child {
  grid-column: copy;
  grid-row: 1;
  align-self: start;
  overflow: hidden;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-preview-copy h2 {
  grid-column: copy;
  grid-row: 2;
  display: -webkit-box;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: calc(var(--product-preview-title-lines) * 1.04em);
  overflow: hidden;
  overflow-wrap: anywhere;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(0.58rem, var(--product-preview-title-size), 2.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: auto;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--product-preview-title-lines);
  line-clamp: var(--product-preview-title-lines);
}

.product-preview-copy[data-title-density="medium"] {
  --product-preview-title-lines: 2;
}

.product-preview-copy[data-title-density="long"],
.product-preview-copy[data-title-density="compact"] {
  --product-preview-title-lines: 2;
}

.product-preview-copy[data-title-density="compact"] small {
  display: none;
}

.product-preview-copy > span {
  grid-area: meta;
  align-self: start;
  justify-self: center;
  width: min(100%, 320px);
  text-align: center;
  color: rgba(5, 5, 5, 0.72);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
}

.product-preview-copy > p:nth-of-type(2) {
  grid-column: copy;
  grid-row: 3;
  display: -webkit-box;
  align-self: start;
  max-height: 3.2em;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: rgba(5, 5, 5, 0.68);
  font-size: var(--product-preview-description-size);
  line-height: 1.28;
  max-width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-preview-copy dl {
  grid-area: meta;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(100%, 320px);
  border-top: 1px solid rgba(5, 5, 5, 0.1);
  margin-top: 32px;
  padding-top: 14px;
}

.product-preview-copy dl > div {
  text-align: center;
}

.product-preview-copy dt {
  color: rgba(5, 5, 5, 0.42);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-preview-copy dd {
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 900;
}

.product-preview-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: clamp(8px, 0.9vw, 14px);
  align-self: center;
  justify-self: stretch;
  width: 100%;
  min-height: 64px;
}

.product-preview-copy[data-action-count="1"] .product-preview-actions {
  grid-template-columns: 1fr;
}

.product-preview-copy[data-action-count="2"] .product-preview-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-preview-copy[data-action-count="3"] .product-preview-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-preview-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.product-preview-actions button[hidden] {
  display: none;
}

.product-preview-actions button:first-child:last-child,
.product-preview-actions button[hidden] + button,
.product-preview-actions button:not([hidden]):last-child {
  grid-column: span 2;
}

.product-preview-actions button[data-product-preview-cart] {
  border: 1px solid rgba(5, 5, 5, 0.16);
  background: transparent;
  color: #050505;
}

.product-preview-actions button:disabled {
  background: var(--accent);
  color: #fff;
  cursor: default;
}

.product-preview-actions button[data-product-preview-cart]:disabled {
  border-color: transparent;
}

.product-preview-copy small {
  grid-area: note;
  align-self: end;
  justify-self: center;
  width: min(100%, 320px);
  text-align: center;
  color: rgba(5, 5, 5, 0.46);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .product-preview {
    background: #f5f4ef;
  }

  .product-preview-panel {
    height: 100svh;
    padding-bottom: 0;
    overflow: hidden;
    background: #f5f4ef;
  }

  .product-preview-media {
    height: var(--product-media-height, calc(100svh - var(--product-bar-height)));
    max-height: calc(100svh - var(--product-bar-height));
    background: #f5f4ef;
    transition: none;
  }

  .product-preview-track {
    gap: clamp(8px, 0.9vw, 14px);
    padding: 0;
    scroll-padding-inline: 0;
  }

  .product-preview-slide {
    flex-basis: calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
    width: calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
    background: #f5f4ef;
  }

  .product-preview-slide:first-child {
    flex-basis: calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
    width: calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
  }

  .product-preview-media img,
  .product-preview-slide img {
    background: #f5f4ef;
    object-fit: cover;
  }

  .product-preview-copy {
    height: var(--product-bar-height);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "copy meta actions"
      "copy meta actions"
      "copy note actions";
    grid-template-rows: 12px minmax(38px, 1fr) 34px;
    gap: 6px 18px;
    padding: 16px max(18px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    background: rgba(245, 244, 239, 0.94);
  }

  .product-preview-copy > p:first-child {
    position: static;
    transform: none;
  }

  .product-preview-copy h2 {
    align-self: center;
    max-width: 100%;
    font-size: clamp(0.58rem, var(--product-preview-title-size), 3rem);
  }

  .product-preview-copy > p:nth-of-type(2) {
    align-self: start;
    max-width: 100%;
    font-size: var(--product-preview-description-size);
  }

  .product-preview-copy dl {
    align-self: center;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .product-preview-actions {
    align-self: center;
    min-height: 72px;
  }

  .product-preview-actions button {
    min-height: 66px;
    border-radius: 999px;
  }

  .product-preview-count {
    right: 18px;
    bottom: 18px;
    background: rgba(5, 5, 5, 0.56);
  }

  .product-preview-dots {
    bottom: 5px;
  }
}

@media (min-width: 900px) and (orientation: portrait) {
  .product-preview-slide,
  .product-preview-slide:first-child {
    flex-basis: 100vw;
    width: 100vw;
  }

  .product-preview-copy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "copy meta actions"
      "copy meta actions"
      "copy note actions";
  }

  .product-preview-copy small {
    display: none;
  }
}

@media (max-width: 899px) {
  .product-preview-copy {
    --product-preview-title-lines: 2;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "status price"
      "title title"
      "description description"
      "details details"
      "actions actions"
      "note note";
    grid-template-rows: 12px 42px 32px auto 64px auto;
    gap: 8px 14px;
    height: min(52svh, 340px);
    max-height: 52svh;
    overflow-y: auto;
    padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .product-preview-copy > p:first-child {
    grid-area: status;
  }

  .product-preview-copy h2 {
    grid-area: title;
    font-size: clamp(0.62rem, var(--product-preview-title-size), 2.4rem);
  }

  .product-preview-copy > span {
    grid-area: price;
  }

  .product-preview-copy > p:nth-of-type(2) {
    grid-area: description;
    font-size: var(--product-preview-description-size);
  }

  .product-preview-copy small {
    grid-area: note;
    font-size: 0.78rem;
  }

  .product-preview-copy dl {
    grid-area: details;
    grid-template-columns: 1fr 1fr;
    padding-top: 10px;
  }
}

@media (max-height: 620px) {
  .product-preview-panel {
    padding-bottom: 104px;
  }

  .product-preview-copy {
    --product-preview-title-lines: 2;
    grid-template-columns: minmax(150px, 1fr) auto minmax(210px, 0.8fr);
    grid-template-areas:
      "title price actions"
      "status status actions";
    grid-template-rows: minmax(38px, 1fr) 14px;
    height: 88px;
    max-height: 34svh;
    overflow: hidden;
    padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .product-preview-copy > p:first-child {
    grid-area: status;
  }

  .product-preview-copy h2 {
    grid-area: title;
    font-size: clamp(0.58rem, var(--product-preview-title-size), 1.9rem);
  }

  .product-preview-copy > span {
    grid-area: price;
  }

  .product-preview-copy dl,
  .product-preview-copy > p:nth-of-type(2),
  .product-preview-copy small {
    display: none;
  }

  .product-preview-actions button {
    min-height: 44px;
  }
}

@media (max-width: 640px) and (max-height: 620px) {
  .product-preview-copy {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title price"
      "status actions";
  }
}

@keyframes productPreviewIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030303;
  color: #fff;
  touch-action: none;
  overscroll-behavior: contain;
}

.image-lightbox-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  --lightbox-drag-x: 0px;
  --lightbox-next-x: 100%;
  --lightbox-current-end-x: -100%;
  --lightbox-next-end-x: 0px;
  touch-action: none;
}

.image-lightbox.is-gesturing .image-lightbox-stage {
  cursor: grabbing;
}

.image-lightbox-stage img {
  grid-area: 1 / 1;
  width: var(--lightbox-fit-width, auto);
  height: var(--lightbox-fit-height, auto);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 240ms cubic-bezier(0.2, 0.78, 0.2, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.image-lightbox-stage [data-image-lightbox-next-image] {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(100%, 0, 0) scale(1);
}

.image-lightbox-stage [data-image-lightbox-next-image][hidden] {
  display: none;
}

.image-lightbox.is-gesturing .image-lightbox-stage img {
  transition: none;
}

.image-lightbox.is-swiping .image-lightbox-stage [data-image-lightbox-image] {
  transition: none;
  transform: translate3d(var(--lightbox-drag-x), 0, 0) scale(1);
}

.image-lightbox.is-swiping .image-lightbox-stage [data-image-lightbox-next-image] {
  opacity: 1;
  transition: none;
  transform: translate3d(calc(var(--lightbox-next-x) + var(--lightbox-drag-x)), 0, 0) scale(1);
}

.image-lightbox.is-swipe-settling .image-lightbox-stage [data-image-lightbox-image],
.image-lightbox.is-swipe-settling .image-lightbox-stage [data-image-lightbox-next-image] {
  transition:
    opacity 210ms ease,
    transform 240ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.image-lightbox.is-swipe-settling .image-lightbox-stage [data-image-lightbox-next-image] {
  opacity: 0;
  transform: translate3d(var(--lightbox-next-x), 0, 0) scale(1);
}

.image-lightbox.is-swipe-completing .image-lightbox-stage [data-image-lightbox-image],
.image-lightbox.is-swipe-completing .image-lightbox-stage [data-image-lightbox-next-image] {
  transition:
    opacity 220ms ease,
    transform 240ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.image-lightbox.is-swipe-completing .image-lightbox-stage [data-image-lightbox-image] {
  opacity: 0;
  transform: translate3d(var(--lightbox-current-end-x), 0, 0) scale(1);
}

.image-lightbox.is-swipe-completing .image-lightbox-stage [data-image-lightbox-next-image] {
  opacity: 1;
  transform: translate3d(var(--lightbox-next-end-x), 0, 0) scale(1);
}

.image-lightbox-close {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.image-lightbox-nav.is-previous {
  left: max(10px, env(safe-area-inset-left));
}

.image-lightbox-nav.is-next {
  right: max(10px, env(safe-area-inset-right));
}

.image-lightbox-dots {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  transform: translateX(-50%);
}

.image-lightbox-dots button {
  width: 26px;
  height: 2px;
  min-height: 2px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.image-lightbox-dots button[aria-current="true"] {
  background: #fff;
}

.image-lightbox-status {
  position: absolute;
  left: 50%;
  bottom: calc(44px + env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  transform: translateX(-50%);
  pointer-events: none;
}

.image-lightbox-status span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 850;
  backdrop-filter: blur(16px);
}

.image-lightbox-status p {
  margin: 0;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
}

.preference-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.preference-group legend,
.payment-select span {
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preference-group legend {
  width: 100%;
  margin-bottom: 2px;
}

.preference-group label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 239, 230, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.preference-group input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.payment-select {
  flex: 1 1 230px;
  display: grid;
  gap: 6px;
}

.payment-select select {
  width: 100%;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(245, 239, 230, 0.72) 50%) right 18px center / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.06);
  color: var(--ink);
  outline: none;
}

.signup-form button {
  flex: 0 0 auto;
  height: 52px;
  border: 0;
  cursor: pointer;
}

.preference-toggle {
  min-width: 52px;
  border: 1px solid rgba(245, 239, 230, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ink) !important;
}

.preference-toggle.is-open {
  border-color: rgba(255, 58, 47, 0.6) !important;
}

.form-note {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
}

.form-note.is-success {
  color: rgba(174, 255, 202, 0.9);
}

.form-note.is-error {
  color: rgba(255, 155, 148, 0.95);
}

.access-handoff {
  width: min(560px, 100%);
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid rgba(245, 239, 230, 0.16);
  border-radius: 18px;
  padding: 14px;
  background: rgba(5, 5, 5, 0.38);
  backdrop-filter: blur(18px);
}

.access-handoff[hidden] {
  display: none;
}

.access-handoff p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.access-handoff strong {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 58, 47, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-handoff div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.access-handoff button {
  min-height: 38px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.access-handoff button:hover {
  background: rgba(245, 239, 230, 0.14);
}

.drag-handle,
.scene-order-controls,
.hotspot-editor-controls,
.composition-editor-controls,
.header-editor-controls,
.base-panel,
.editor-toolbar,
.product-editor-shell,
.alignment-guides {
  display: none;
}

.edit-mode .site-header {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.86),
    rgba(0, 0, 0, 0)
  );
}

.edit-mode .edit-entry-link {
  display: none;
}

.edit-mode .brand-mark {
  z-index: 92;
  border-radius: 8px;
  outline: 1px dashed rgba(255, 58, 47, 0.62);
  outline-offset: 8px;
  cursor: grab;
}

.edit-mode .brand-mark:active {
  cursor: grabbing;
}

.edit-mode .brand-mark.is-logo-drop-target {
  outline-color: rgba(245, 239, 230, 0.92);
  background: rgba(255, 58, 47, 0.18);
}

.edit-mode .header-editor-controls {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  top: calc(var(--header-height) + 12px);
  z-index: 91;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 8px;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
}

.header-editor-controls span {
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-editor-controls button {
  min-height: 32px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.header-editor-controls button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.edit-mode .access-section {
  z-index: 90;
}

.edit-mode .scene-copy,
.edit-mode .access-content {
  outline: 1px dashed rgba(255, 58, 47, 0.72);
  outline-offset: 12px;
}

.edit-mode .access-content {
  position: relative;
  z-index: 80;
}

.edit-mode .scene-copy {
  cursor: default;
}

.edit-mode [data-edit] {
  position: relative;
  z-index: 8;
  display: inline-block;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(245, 239, 230, 0.22);
  cursor: text;
}

.edit-mode .eyebrow[data-edit] {
  z-index: 10;
  display: block;
  width: fit-content;
}

.edit-mode .scene h1,
.edit-mode .scene h2,
.edit-mode .access-content h2 {
  position: relative;
  z-index: 6;
}

.edit-mode [data-edit]:focus {
  outline: 2px solid rgba(255, 58, 47, 0.92);
  outline-offset: 4px;
  background: rgba(0, 0, 0, 0.22);
}

.edit-mode .drag-handle {
  position: absolute;
  left: 0;
  top: -46px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 58, 47, 0.72);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(5, 5, 5, 0.82);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: grab;
  user-select: none;
}

.edit-mode .drag-handle:active {
  cursor: grabbing;
}

.edit-mode .product-hotspot {
  z-index: 6;
  outline: 1px dashed rgba(245, 239, 230, 0.54);
  outline-offset: 2px;
}

.edit-mode .product-hotspot::before {
  border: 1px solid rgba(255, 58, 47, 0.76);
  opacity: 1;
  transform: scale(1);
}

.edit-mode .product-hotspot span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.edit-mode .hotspot-editor-controls {
  position: absolute;
  left: var(--hotspot-x);
  top: calc(var(--hotspot-y) + 7%);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
}

.hotspot-editor-controls span,
.hotspot-editor-controls button {
  min-height: 28px;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(5, 5, 5, 0.74);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.hotspot-editor-controls .hotspot-product-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-color: rgba(255, 58, 47, 0.86);
  padding: 0 12px 0 5px;
  background: rgba(255, 58, 47, 0.96);
  box-shadow: 0 12px 30px rgba(255, 58, 47, 0.28);
}

.hotspot-editor-controls .hotspot-product-add b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 1.22rem;
  line-height: 1;
}

.hotspot-editor-controls .hotspot-product-add span {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  font-size: 0.74rem;
}

.hotspot-editor-controls button {
  cursor: pointer;
}

.hotspot-editor-controls button:hover {
  background: rgba(245, 239, 230, 0.12);
}

.hotspot-editor-controls .hotspot-product-add:hover {
  background: #ff3a2f;
  transform: translateY(-1px);
}

.product-editor-shell.is-open {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: stretch;
  padding: 0;
}

.product-editor-backdrop {
  display: none;
}

.product-editor {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f5f4ef;
  color: #050505;
  box-shadow: none;
}

.product-editor header,
.product-editor footer,
.product-editor-row {
  display: flex;
  gap: 10px;
}

.product-editor header {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  top: max(18px, env(safe-area-inset-top));
  z-index: 4;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  border: 1px solid rgba(245, 239, 230, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(5, 5, 5, 0.42);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.product-editor header p,
.product-editor h3 {
  margin: 0;
}

.product-editor header p {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-editor h3 {
  margin-top: 2px;
  font-size: 0.9rem;
}

.product-editor .product-editor-close-button {
  position: fixed;
  left: auto !important;
  right: 18px;
  top: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid rgba(245, 244, 239, 0.58);
  background: rgba(5, 5, 5, 0.86);
  color: white;
  font-size: 1.15rem;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(5, 5, 5, 0.14);
  backdrop-filter: blur(16px);
}

.product-editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-phone-frame {
  display: grid;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: #f1f0eb;
  box-shadow: none;
}

.product-phone-speaker {
  display: none;
}

.product-phone-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #f1f0eb;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 239, 230, 0.28) transparent;
}

.product-editor-row > label {
  flex: 1 1 0;
  min-width: 0;
}

.product-editor input,
.product-editor textarea,
.product-editor select {
  width: 100%;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: 0;
}

.product-phone-screen input,
.product-phone-screen textarea,
.product-phone-screen select {
  border-color: rgba(5, 5, 5, 0.1);
  background: rgba(5, 5, 5, 0.045);
  color: #050505;
}

.product-phone-screen label {
  color: rgba(5, 5, 5, 0.58);
}

.product-editor textarea {
  resize: vertical;
}

.product-editor input:focus,
.product-editor textarea:focus,
.product-editor select:focus {
  border-color: rgba(255, 58, 47, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 58, 47, 0.16);
}

.product-image-editor {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f5f4ef;
  cursor: grab;
  touch-action: none;
}

.product-editor-track {
  display: flex;
  width: 100%;
  height: 100%;
  gap: clamp(8px, 0.9vw, 14px);
  background: #f5f4ef;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.product-editor-track::-webkit-scrollbar {
  display: none;
}

.product-editor-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
  background: #f5f4ef;
}

.product-editor-add-slide {
  display: grid;
  place-items: center;
  cursor: default;
}

.product-editor .product-editor-add-slide button {
  display: grid;
  place-items: center;
  width: clamp(54px, 5.4vw, 74px);
  height: clamp(54px, 5.4vw, 74px);
  min-height: clamp(54px, 5.4vw, 74px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 0;
  background: var(--accent);
  color: white;
  box-shadow:
    0 18px 48px rgba(255, 58, 47, 0.3),
    0 0 0 8px rgba(255, 58, 47, 0.08);
}

.product-editor .product-editor-add-slide button b {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1;
  transform: translateY(-1px);
}

.product-editor-slide figcaption {
  position: absolute;
  left: clamp(14px, 2vw, 24px);
  top: clamp(72px, 9vw, 96px);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(5, 5, 5, 0.62);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.product-empty-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background: #0b0b0b;
  color: rgba(245, 239, 230, 0.86);
  text-align: center;
}

.product-image-editor.is-empty .product-empty-media {
  display: grid;
}

.product-image-editor.is-empty {
  background: #0b0b0b;
}

.product-image-editor.is-empty .product-editor-track,
.product-image-editor.is-empty [data-product-image-preview] {
  display: none;
}

.product-empty-media strong {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

.product-empty-media span {
  max-width: 34em;
  color: rgba(245, 239, 230, 0.58);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.6;
}

.product-image-editor[data-dragging="true"] {
  cursor: grabbing;
}

.product-image-editor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--product-image-focus-x, 50%) var(--product-image-focus-y, 50%);
}

.product-editor-slide img {
  display: block;
}

.product-image-editor [data-product-image-counter] {
  position: absolute;
  left: 14px;
  bottom: 18px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(5, 5, 5, 0.66);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.product-image-add-float {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  top: clamp(72px, 6vw, 92px);
  bottom: auto;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 0;
  background: rgba(5, 5, 5, 0.62);
  color: white;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.product-image-actions {
  position: absolute;
  right: clamp(82px, 7vw, 104px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  max-width: calc(100% - 170px);
  overflow-x: auto;
}

.product-image-actions[hidden] {
  display: none;
}

.product-image-actions button {
  min-height: 38px;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(5, 5, 5, 0.62);
  color: white;
  backdrop-filter: blur(16px);
  white-space: nowrap;
}

.product-image-actions button:disabled {
  opacity: 0.44;
}

.product-image-add-float b {
  font-size: 1.35rem;
  line-height: 1;
}

.product-image-editor:not(.is-empty) .product-image-add-float {
  display: none;
}

.product-image-editor.is-empty .product-image-add-float {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: clamp(132px, 15vw, 172px);
  height: 52px;
  min-height: 52px;
  border-color: rgba(255, 58, 47, 0.72);
  background: var(--accent);
  box-shadow: 0 22px 60px rgba(255, 58, 47, 0.24);
  transform: translate(-50%, calc(-50% + 84px));
}

.product-image-editor.is-empty .product-image-add-float::after {
  content: "添加图片";
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 950;
}

.product-image-editor.is-empty .product-image-add-float b {
  font-size: 1.35rem;
}

.product-image-dots {
  position: absolute;
  left: var(--product-image-progress-center-x, 50%);
  bottom: 5px;
  z-index: 9;
  display: none;
  justify-content: center;
  gap: 4px;
  width: min(var(--product-image-progress-width, 80%), calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
  pointer-events: auto;
}

.product-image-editor:not(.is-empty) .product-image-dots {
  display: flex;
}

.product-editor .product-image-dots button {
  flex: 1 1 0;
  width: auto;
  height: 3px;
  min-height: 3px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.product-editor .product-image-dots button[aria-current="true"] {
  background: white;
}

.product-live-fields {
  display: grid;
  grid-template-columns: minmax(280px, 1.12fr) minmax(130px, 0.32fr) minmax(150px, 0.34fr) minmax(260px, 0.68fr);
  grid-template-areas:
    "status price attrs story"
    "title price attrs story"
    "description price attrs story";
  align-content: start;
  gap: 4px 20px;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid rgba(5, 5, 5, 0.08);
  padding: 12px clamp(18px, 2.4vw, 28px) calc(12px + env(safe-area-inset-bottom));
  padding-right: clamp(380px, 32vw, 480px);
  background: rgba(245, 244, 239, 0.96);
  color: #050505;
}

.product-live-fields .product-id-field {
  display: none;
}

.product-status-field {
  grid-area: status;
  align-self: start;
  width: max-content;
  max-width: 100%;
  color: var(--accent);
}

.product-status-field select {
  width: auto;
  min-width: 120px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-id-field span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.product-editor .product-id-field input {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
}

.product-editor .product-id-field button {
  min-height: 30px;
  border-color: rgba(245, 239, 230, 0.14);
  background: rgba(245, 239, 230, 0.08);
  color: white;
}

.product-live-fields .product-title-input {
  --product-title-size: 2.35rem;
  grid-area: title;
  align-self: end;
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #050505;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.55rem, calc(var(--product-title-size) * 1.05), 3.1rem);
  font-weight: 700;
  line-height: 0.96;
}

.product-live-fields > textarea {
  grid-area: description;
  min-height: 48px;
  max-height: 110px;
  overflow-y: auto;
  border-color: transparent;
  background: transparent;
  color: rgba(5, 5, 5, 0.74);
  font-size: 0.92rem;
  line-height: 1.45;
  resize: none;
}

.product-live-fields input,
.product-live-fields textarea,
.product-live-fields select {
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.product-live-fields input:not(:focus),
.product-live-fields textarea:not(:focus),
.product-live-fields select:not(:focus) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.product-live-fields label:hover input,
.product-live-fields label:hover textarea,
.product-live-fields label:hover select,
.product-live-fields input:focus,
.product-live-fields textarea:focus,
.product-live-fields select:focus {
  border-color: rgba(5, 5, 5, 0.1);
  background: rgba(5, 5, 5, 0.045);
}

.product-live-fields > .product-editor-row:nth-of-type(1) {
  grid-area: price;
  display: grid;
  gap: 10px;
  align-self: center;
}

.product-live-fields > .product-editor-row:nth-of-type(2) {
  grid-area: attrs;
  align-self: center;
}

.product-story-block {
  display: grid;
  grid-area: story;
  gap: 8px;
  border-left: 1px solid rgba(5, 5, 5, 0.1);
  border-top: 0;
  padding-left: 18px;
  padding-top: 0;
}

.product-story-block textarea {
  min-height: 82px;
  max-height: 160px;
  border-color: rgba(5, 5, 5, 0.08);
  background: rgba(5, 5, 5, 0.035);
  color: rgba(5, 5, 5, 0.72);
  line-height: 1.5;
}

.product-story-block p {
  margin: 0;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 900;
}

.product-editor footer {
  position: absolute;
  right: clamp(18px, 2.4vw, 28px);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  width: min(430px, calc(100% - 36px));
}

.product-editor-status {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  margin: 0;
  color: rgba(5, 5, 5, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-editor-status[data-tone="success"] {
  color: #a6f4c5;
}

.product-editor-status[data-tone="error"] {
  color: #ff8a80;
}

.product-editor button {
  min-height: 46px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.product-editor footer button[type="submit"] {
  min-height: 68px;
  border-radius: 999px;
}

.product-editor footer button[data-product-editor-action="preview"] {
  border-color: rgba(255, 58, 47, 0.72);
  background: #050505;
  color: white;
}

.product-editor footer button[data-product-editor-action="keep"] {
  border-color: rgba(5, 5, 5, 0.16);
  background: rgba(245, 244, 239, 0.82);
  color: #050505;
}

.product-editor button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.product-editor button:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 820px) {
  .product-editor {
    width: 100vw;
    height: 100svh;
    border-radius: 0;
    padding: 0;
  }

  .product-phone-frame {
    border-radius: 18px;
  }

  .product-phone-screen {
    display: block;
    overflow-y: auto;
  }

  .product-image-editor {
    height: min(560px, calc(100svh - 260px));
    min-height: 360px;
  }

  .product-live-fields {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "title"
      "description"
      "price"
      "attrs"
      "story";
    overflow: visible;
    padding: 12px 14px 16px;
  }

  .product-editor footer {
    position: static;
    grid-template-columns: 1fr;
    width: auto;
    padding: 0 14px calc(14px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 821px) and (max-width: 1320px) {
  .product-live-fields {
    grid-template-columns: minmax(260px, 1fr) minmax(120px, 0.36fr) minmax(140px, 0.36fr);
    grid-template-areas:
      "status price attrs"
      "title price attrs"
      "description description description"
      "story story story";
    padding-right: clamp(18px, 2.4vw, 28px);
    padding-bottom: 132px;
  }

  .product-story-block {
    border-left: 0;
    border-top: 1px solid rgba(5, 5, 5, 0.1);
    padding-left: 0;
    padding-top: 10px;
  }
}

@media (min-width: 900px) {
  .product-editor {
    --product-editor-bar-height: clamp(106px, 13svh, 128px);
  }

  .product-phone-screen {
    grid-template-rows: minmax(420px, calc(100svh - var(--product-editor-bar-height))) var(--product-editor-bar-height);
  }

  .product-editor-slide {
    flex-basis: calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
    width: calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
  }
}

@media (min-width: 900px) and (max-width: 1180px),
  (min-width: 900px) and (max-aspect-ratio: 16 / 9) {
  .product-editor-slide {
    flex-basis: 100vw;
    width: 100vw;
  }
}

.product-manager-shell {
  display: none;
}

.product-preview {
  --product-bar-height: clamp(156px, 22svh, 230px);
}

.product-preview-copy {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.78fr) minmax(260px, 0.92fr);
  grid-template-areas:
    "summary purchase actions"
    "note purchase actions";
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: clamp(12px, 1.4vw, 22px);
  height: var(--product-bar-height);
  max-height: min(42svh, 250px);
  padding: clamp(16px, 2vw, 24px) max(18px, env(safe-area-inset-right))
    calc(clamp(16px, 2vw, 24px) + env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  background: rgba(245, 244, 239, 0.96);
}

.product-preview-summary {
  grid-area: summary;
  display: grid;
  grid-template-rows: auto minmax(0, auto) minmax(0, 1fr);
  align-content: center;
  min-width: 0;
  gap: 6px;
}

.product-preview-summary p,
.product-preview-purchase dl,
.product-preview-purchase dd,
.product-preview-copy small,
.product-preview-copy h2 {
  margin: 0;
}

.product-preview-summary > p:first-child {
  overflow: hidden;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-preview-summary h2 {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.1rem, var(--product-preview-title-size), 3rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--product-preview-title-lines, 2);
  line-clamp: var(--product-preview-title-lines, 2);
}

.product-preview-summary > p:nth-child(3) {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: rgba(5, 5, 5, 0.66);
  font-size: var(--product-preview-description-size);
  font-weight: 720;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-preview-purchase {
  grid-area: purchase;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  border-left: 1px solid rgba(5, 5, 5, 0.1);
  padding-left: clamp(14px, 1.6vw, 24px);
}

.product-preview-purchase > span {
  align-self: start;
  color: #050505;
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.product-preview-purchase dl {
  grid-area: auto;
  align-self: auto;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  border: 0;
  margin-top: 0;
  padding: 0;
}

.product-preview-purchase dl > div {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 8px;
  padding: 10px 10px;
  background: rgba(255, 255, 255, 0.34);
  text-align: left;
}

.product-preview-purchase dt {
  color: rgba(5, 5, 5, 0.42);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-preview-purchase dd {
  overflow: hidden;
  color: #050505;
  font-size: 0.9rem;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: normal;
}

.product-preview-purchase dd[data-product-preview-sizes],
.product-preview-purchase dd[data-product-preview-category] {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-preview-purchase dd button {
  min-width: 28px;
  min-height: 28px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.48);
  color: #050505;
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
}

.product-preview-purchase dd button:disabled {
  cursor: default;
}

.product-preview-purchase dd button[aria-pressed="true"] {
  border-color: #050505;
  background: #050505;
  color: white;
}

.product-preview-purchase dd[data-product-preview-category] button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.product-preview-purchase dd[data-product-preview-category] button span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(5, 5, 5, 0.16);
  border-radius: 50%;
  background: var(--swatch-color, #d7d0c2);
}

.product-preview-purchase dd[data-product-preview-category] button b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-preview-quantity-stepper {
  display: grid;
  grid-template-columns: 28px minmax(54px, 1fr) 28px;
  align-items: center;
  gap: 5px;
  max-width: 132px;
}

.product-preview-quantity-stepper output {
  overflow: hidden;
  color: #050505;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-preview-actions {
  grid-area: actions;
  display: grid;
  grid-auto-rows: minmax(52px, 1fr);
  grid-template-columns: 1fr;
  gap: 10px;
  align-self: stretch;
  min-height: 0;
}

.product-preview-copy[data-action-count="2"] .product-preview-actions,
.product-preview-copy[data-action-count="3"] .product-preview-actions,
.product-preview-copy[data-action-count="1"] .product-preview-actions {
  grid-template-columns: 1fr;
}

.product-preview-actions button,
.product-preview-actions button:first-child:last-child,
.product-preview-actions button[hidden] + button,
.product-preview-actions button:not([hidden]):last-child {
  grid-column: auto;
  min-height: 52px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.product-preview-actions button[data-product-preview-cart] {
  background: rgba(255, 255, 255, 0.36);
}

.product-preview-copy small {
  grid-area: note;
  align-self: end;
  justify-self: start;
  width: auto;
  max-width: 48rem;
  color: rgba(5, 5, 5, 0.48);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.45;
  text-align: left;
}

.product-image-card-actions {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(460px, calc(100% - 32px));
  overflow: visible;
}

.product-editor-slide {
  cursor: grab;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.product-image-editor[data-dragging="true"] .product-editor-slide {
  cursor: grabbing;
}

.product-image-editor[data-reordering="true"] .product-editor-slide {
  cursor: grabbing;
}

.product-editor-slide.is-dragging {
  opacity: 0.44;
  transform: scale(0.985);
}

.product-editor-slide.is-drop-target {
  box-shadow: inset 0 0 0 3px rgba(255, 58, 47, 0.82);
}

.product-editor-slide.is-drop-target::after {
  content: "拖到这里";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 58, 47, 0.9);
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.product-image-card-actions button {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(245, 239, 230, 0.22);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(5, 5, 5, 0.62);
  color: white;
  font-size: 0.7rem;
  white-space: nowrap;
  backdrop-filter: blur(16px);
}

.product-image-card-actions button:disabled {
  opacity: 0.45;
}

.product-image-strip {
  grid-area: strip;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.product-image-strip::-webkit-scrollbar {
  display: none;
}

.product-image-thumb {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: grab;
}

.product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-thumb span {
  position: absolute;
  left: 4px;
  bottom: 4px;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(5, 5, 5, 0.72);
  color: white;
  font-size: 0.58rem;
  font-weight: 900;
}

.product-image-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 58, 47, 0.18);
}

.product-image-thumb.is-dragging {
  cursor: grabbing;
  opacity: 0.48;
}

.product-live-fields {
  grid-template-columns: minmax(260px, 1.16fr) minmax(150px, 0.42fr) minmax(150px, 0.42fr) minmax(200px, 0.58fr);
  grid-template-areas:
    "status price attrs story"
    "title price attrs story"
    "description price attrs story";
  min-height: var(--product-editor-bar-height, clamp(132px, 17svh, 188px));
  padding-right: clamp(500px, 42vw, 620px);
}

.product-live-fields > .product-editor-row:nth-of-type(1),
.product-live-fields > .product-editor-row:nth-of-type(2) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-self: stretch;
}

.product-live-fields label {
  align-content: start;
}

.product-live-fields > .product-editor-row label,
.product-size-field {
  min-width: 0;
  border-top: 1px solid rgba(5, 5, 5, 0.1);
  padding-top: 10px;
  color: rgba(5, 5, 5, 0.44);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.product-live-fields label > input:not([type="hidden"]),
.product-live-fields label > textarea,
.product-live-fields label > select {
  min-height: 40px;
}

.product-color-field input,
.product-quantity-field input,
.product-material-field input,
.product-price-field input {
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #050505;
  font-size: 0.88rem;
  font-weight: 900;
}

.product-price-field input {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1;
}

.product-size-field {
  align-content: start;
}

.product-size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.product-size-options button {
  min-height: 38px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.46);
  color: #050505;
  font-size: 0.76rem;
  font-weight: 900;
}

.product-size-options button[aria-pressed="true"] {
  border-color: rgba(255, 58, 47, 0.72);
  background: rgba(255, 58, 47, 0.1);
  color: var(--accent);
}

.product-category-field input {
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #050505;
  font-size: 0.88rem;
  font-weight: 900;
}

.product-category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-category-options button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(5, 5, 5, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-category-options button[aria-pressed="true"] {
  border-color: rgba(255, 58, 47, 0.72);
  background: rgba(255, 58, 47, 0.1);
  color: var(--accent);
}

.product-image-strip {
  display: none;
}

.product-editor footer {
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr;
  width: min(430px, calc(42vw - 28px));
}

.product-editor footer button[type="submit"] {
  min-height: 54px;
}

.product-editor-status {
  position: static;
  justify-self: end;
  min-height: 18px;
  margin: 0 4px -2px 0;
  color: rgba(5, 5, 5, 0.46);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: right;
}

.product-editor-status[hidden] {
  display: block;
  visibility: hidden;
}

.product-editor-status[data-tone="success"] {
  color: rgba(5, 5, 5, 0.46);
}

.product-editor-status[data-tone="error"] {
  border: 1px solid rgba(143, 36, 31, 0.18);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(143, 36, 31, 0.055);
  color: #8f241f;
}

.product-story-block {
  min-width: 0;
}

.product-story-block textarea {
  min-height: 50px;
  max-height: 76px;
}

@media (min-width: 900px) {
  .product-editor {
    --product-editor-bar-height: clamp(156px, 22svh, 230px);
  }

  .product-phone-screen {
    grid-template-rows: minmax(420px, calc(100svh - var(--product-editor-bar-height))) var(--product-editor-bar-height);
  }
}

@media (max-width: 980px) {
  .product-preview-copy {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.52fr);
    grid-template-areas:
      "summary purchase"
      "actions actions"
      "note note";
    height: min(48svh, 360px);
    max-height: 58svh;
    overflow-y: auto;
  }

  .product-preview-purchase {
    border-left: 0;
    padding-left: 0;
  }

  .product-preview-purchase dl {
    grid-template-columns: 1fr;
  }

  .product-preview-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 54px;
  }

  .product-preview-copy[data-action-count="1"] .product-preview-actions {
    grid-template-columns: 1fr;
  }

  .product-live-fields {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.42fr);
    grid-template-areas:
      "status price"
      "title price"
      "description attrs"
      "story story";
    padding-right: clamp(18px, 2.4vw, 28px);
    padding-bottom: 132px;
  }

  .product-editor footer {
    left: 18px;
    right: 18px;
    grid-template-columns: 1fr 1fr;
    width: auto;
  }
}

@media (max-width: 700px) {
  .product-preview {
    --product-rail-x: max(16px, env(safe-area-inset-left));
    --product-rail-top: 16px;
    --product-rail-main-offset: 0px;
  }

  .product-preview-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "purchase"
      "actions"
      "note";
    height: min(56svh, 390px);
    padding: 14px max(14px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .product-preview-summary h2 {
    font-size: clamp(1.35rem, var(--product-preview-title-size), 2.3rem);
  }

  .product-preview-purchase {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
  }

  .product-preview-purchase dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-preview-actions {
    grid-template-columns: 1fr;
  }

  .product-live-fields {
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "title"
      "description"
      "price"
      "attrs"
      "story";
    max-height: none;
    overflow: visible;
    padding: 14px 14px 112px;
  }
}

@media (max-height: 620px) {
  .product-preview-copy {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.46fr) minmax(210px, 0.68fr);
    grid-template-areas: "summary purchase actions";
    height: 108px;
    max-height: 42svh;
    overflow-y: auto;
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .product-preview-summary {
    gap: 3px;
  }

  .product-preview-summary > p:nth-child(3),
  .product-preview-copy small {
    display: none;
  }

  .product-preview-purchase {
    gap: 6px;
  }

  .product-preview-purchase > span {
    font-size: 1.05rem;
  }

  .product-preview-purchase dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: hidden;
  }

  .product-preview-purchase dl > div {
    min-width: 0;
    border: 0;
    padding: 3px 0;
    background: transparent;
  }

  .product-preview-purchase dt {
    font-size: 0.56rem;
  }

  .product-preview-purchase dd {
    font-size: 0.72rem;
  }

  .product-preview-purchase dd button {
    min-width: 24px;
    min-height: 24px;
    padding: 0 6px;
    font-size: 0.64rem;
  }

  .product-preview-purchase dd[data-product-preview-category] button b {
    max-width: 52px;
  }

  .product-preview-quantity-stepper {
    grid-template-columns: 24px minmax(42px, 1fr) 24px;
    gap: 3px;
  }

  .product-preview-quantity-stepper output {
    font-size: 0.62rem;
  }

  .product-preview-actions {
    grid-auto-rows: 40px;
    gap: 6px;
  }

  .product-preview-actions button {
    min-height: 40px;
  }
}

@media (max-width: 820px) {
  .product-editor {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .product-phone-frame {
    height: auto;
    min-height: 0;
  }

  .product-phone-screen {
    display: block;
    height: 100%;
    overflow-y: auto;
  }

  .product-image-editor {
    height: min(40svh, 420px);
    min-height: 200px;
  }

  .product-live-fields {
    padding-bottom: 16px;
  }

  .product-live-fields > .product-editor-row:nth-of-type(1) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-live-fields > .product-editor-row:nth-of-type(2) {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .product-editor footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr 1fr;
    width: auto;
    border-top: 1px solid rgba(5, 5, 5, 0.08);
    padding: 0 14px calc(14px + env(safe-area-inset-bottom));
    background: #f5f4ef;
  }

  .product-editor-status {
    grid-column: 1 / -1;
  }

  .product-editor footer button[type="submit"] {
    min-height: 54px;
  }
}

@media (max-width: 520px) {
  .product-live-fields > .product-editor-row:nth-of-type(1),
  .product-live-fields > .product-editor-row:nth-of-type(2) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) and (max-height: 620px) {
  .product-image-editor {
    height: min(34svh, 190px);
    min-height: 176px;
  }

  .product-empty-media {
    gap: 8px;
    padding: 18px 56px 18px 18px;
  }

  .product-empty-media strong {
    font-size: 1.42rem;
  }

  .product-empty-media span {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .product-image-editor.is-empty .product-image-add-float {
    left: auto;
    right: 14px;
    top: 50%;
    width: 44px;
    height: 44px;
    min-height: 44px;
    transform: translateY(-50%);
  }

  .product-image-editor.is-empty .product-image-add-float::after {
    content: "";
    margin-left: 0;
  }

  .product-image-card-actions {
    right: 10px;
    bottom: 10px;
    gap: 4px;
    max-width: calc(100% - 20px);
  }

  .product-image-card-actions button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .product-live-fields {
    gap: 6px;
    padding: 10px 14px 12px;
  }

  .product-live-fields .product-title-input {
    font-size: clamp(1.32rem, var(--product-title-size), 1.82rem);
    line-height: 1.02;
  }

  .product-live-fields > textarea,
  .product-story-block {
    display: none;
  }

  .product-live-fields > .product-editor-row:nth-of-type(1) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .product-live-fields > .product-editor-row label,
  .product-size-field {
    padding-top: 7px;
  }

  .product-live-fields > .product-editor-row:nth-of-type(2) {
    display: none;
  }

  .product-live-fields label > input:not([type="hidden"]),
  .product-live-fields label > textarea,
  .product-live-fields label > select {
    min-height: 28px;
  }

  .product-editor footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 14px calc(10px + env(safe-area-inset-bottom));
  }

  .product-editor footer button[type="submit"] {
    min-height: 46px;
    padding: 0 10px;
  }
}

@media (min-width: 821px) {
  .product-editor {
    --product-editor-bar-height: clamp(126px, 15svh, 142px);
  }

  .product-phone-screen {
    grid-template-rows: minmax(0, calc(100svh - var(--product-editor-bar-height))) var(
        --product-editor-bar-height
      );
  }

  .product-live-fields {
    grid-template-columns:
      minmax(96px, 0.28fr)
      minmax(220px, 0.88fr)
      minmax(260px, 1fr)
      minmax(150px, 0.48fr);
    grid-template-areas:
      "status title price story"
      "status description attrs story";
    align-items: center;
    align-content: center;
    gap: 8px 16px;
    min-height: var(--product-editor-bar-height);
    max-height: var(--product-editor-bar-height);
    overflow: visible;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    padding-right: clamp(500px, 42vw, 620px);
  }

  .product-status-field {
    align-self: stretch;
    justify-content: center;
    border-top: 0;
    padding-top: 0;
  }

  .product-status-field select {
    min-height: 28px;
    font-size: 0.62rem;
  }

  .product-live-fields .product-title-input {
    --product-title-size: 1.72rem;
    align-self: end;
    font-size: clamp(1.12rem, calc(var(--product-title-size) * 0.82), 1.88rem);
    line-height: 0.98;
  }

  .product-live-fields > textarea {
    height: 38px !important;
    min-height: 38px;
    max-height: 38px;
    padding: 2px 0;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .product-live-fields > textarea:focus {
    overflow-y: auto;
  }

  .product-live-fields > .product-editor-row:nth-of-type(1),
  .product-live-fields > .product-editor-row:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    gap: 8px;
  }

  .product-live-fields > .product-editor-row label,
  .product-size-field {
    gap: 3px;
    border-top: 1px solid rgba(5, 5, 5, 0.09);
    padding-top: 6px;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }

  .product-live-fields label > input:not([type="hidden"]),
  .product-live-fields label > textarea,
  .product-live-fields label > select {
    min-height: 28px;
  }

  .product-color-field input,
  .product-quantity-field input,
  .product-material-field input,
  .product-price-field input,
  .product-category-field input {
    min-height: 28px;
    font-size: 0.78rem;
    line-height: 1;
  }

  .product-price-field input {
    font-size: clamp(1rem, 1.5vw, 1.34rem);
  }

  .product-size-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }

  .product-size-options button {
    flex: 0 0 26px;
    min-height: 27px;
    border-radius: 999px;
    padding: 0;
    font-size: 0.62rem;
  }

  .product-category-field {
    position: relative;
    z-index: 5;
  }

  .product-category-field > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .product-category-field small {
    overflow: hidden;
    color: rgba(5, 5, 5, 0.42);
    font-size: 0.54rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-category-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 8;
    display: none !important;
    max-height: 96px;
    overflow-y: auto;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 10px;
    padding: 8px;
    background: rgba(245, 244, 239, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  }

  .product-category-options.is-open {
    display: flex !important;
  }

  .product-category-options button {
    min-height: 28px;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .product-category-options button[data-product-category-role="suggestion"] {
    border-color: rgba(255, 58, 47, 0.36);
    color: var(--accent);
  }

  .product-story-block {
    align-self: stretch;
    gap: 3px;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding-left: 14px;
  }

  .product-story-block textarea {
    height: 56px !important;
    min-height: 0;
    max-height: 56px;
    padding: 8px 10px;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.35;
    resize: none;
  }

  .product-story-block textarea:focus {
    overflow-y: auto;
  }
}

@media (min-width: 821px) and (max-width: 1320px) {
  .product-editor {
    --product-editor-bar-height: clamp(126px, 16svh, 152px);
  }

  .product-live-fields {
    grid-template-columns: minmax(180px, 0.78fr) minmax(240px, 1fr) minmax(176px, 0.62fr);
    grid-template-areas:
      "title price status"
      "description attrs story";
    padding-right: clamp(18px, 2.4vw, 28px);
  }

  .product-story-block {
    border-left: 1px solid rgba(5, 5, 5, 0.1);
    border-top: 0;
    padding-left: 12px;
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .product-live-fields {
    max-height: 52svh;
    overflow-y: auto;
  }

  .product-category-field > span {
    display: grid;
    gap: 3px;
  }

  .product-category-field small {
    color: rgba(5, 5, 5, 0.42);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
  }
}

@media (min-width: 821px) {
  .product-live-fields {
    grid-template-columns: minmax(360px, 1.25fr) minmax(300px, 0.95fr) minmax(170px, 0.52fr);
    grid-template-areas:
      "identity price story"
      "identity attrs story";
    padding-right: clamp(500px, 42vw, 620px);
  }

  .product-identity-stack {
    display: grid;
    grid-area: identity;
    grid-template-rows: auto auto auto;
    align-content: center;
    align-self: center;
    gap: 5px;
    min-width: 0;
  }

  .product-identity-stack .product-status-field,
  .product-identity-stack .product-title-input,
  .product-identity-stack > textarea {
    grid-area: auto;
  }

  .product-status-field {
    position: relative;
    grid-area: auto;
    order: 1;
    align-self: start;
    justify-self: start;
    justify-content: start;
    width: max-content;
    max-width: 100%;
    border-top: 0;
    padding-top: 0;
  }

  .product-status-field::after,
  .product-size-field:hover > span small,
  .product-quantity-field:hover > span small,
  .product-category-field:hover > span small,
  .product-size-field:focus-within > span small,
  .product-quantity-field:focus-within > span small,
  .product-category-field:focus-within > span small {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 12;
    width: max-content;
    max-width: min(240px, 42vw);
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(245, 244, 239, 0.98);
    color: rgba(5, 5, 5, 0.58);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    pointer-events: none;
  }

  .product-status-field:hover::after,
  .product-status-field:focus-within::after {
    content: attr(data-product-field-note);
  }

  .product-status-field select {
    min-height: 18px;
    font-size: 0.62rem;
    line-height: 1;
  }

  .product-live-fields .product-title-input {
    order: 2;
    align-self: start;
  }

  .product-identity-stack > textarea {
    order: 3;
    height: 38px !important;
    min-height: 38px;
    max-height: 38px;
    padding: 2px 0;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .product-identity-stack > textarea:focus {
    overflow-y: auto;
  }

  .product-size-field,
  .product-quantity-field,
  .product-category-field {
    position: relative;
    z-index: 6;
  }

  .product-size-field > span,
  .product-quantity-field > span,
  .product-category-field > span {
    position: relative;
    display: block;
    min-width: 0;
  }

  .product-size-field small,
  .product-quantity-field small,
  .product-category-field small {
    display: none;
  }

  .product-size-field:hover > span small,
  .product-quantity-field:hover > span small,
  .product-category-field:hover > span small,
  .product-size-field:focus-within > span small,
  .product-quantity-field:focus-within > span small,
  .product-category-field:focus-within > span small {
    display: block;
  }

  .product-size-trigger,
  .product-limit-trigger,
  .product-category-trigger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 28px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #050505;
    font-size: 0.78rem;
    font-weight: 950;
    text-align: left;
    box-shadow: none;
  }

  .product-editor .product-size-trigger,
  .product-editor .product-limit-trigger,
  .product-editor .product-category-trigger {
    min-height: 28px;
    color: #050505;
    background: transparent;
  }

  .product-size-trigger span,
  .product-limit-trigger span,
  .product-category-trigger span {
    color: #050505;
    display: block;
    min-width: 0;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-size-trigger::after,
  .product-limit-trigger::after,
  .product-category-trigger::after {
    content: "^";
    margin-left: auto;
    color: rgba(5, 5, 5, 0.44);
    font-size: 0.68rem;
  }

  .product-live-fields input,
  .product-live-fields textarea,
  .product-live-fields select,
  .product-size-trigger,
  .product-limit-trigger,
  .product-category-trigger {
    opacity: 1;
  }

  .product-size-options {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 20px);
    z-index: 11;
    display: none !important;
    grid-template-columns: repeat(4, minmax(42px, 1fr));
    gap: 6px;
    width: min(260px, calc(100vw - 32px));
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 12px;
    padding: 10px;
    background: rgba(245, 244, 239, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  }

  .product-size-options.is-open {
    display: grid !important;
  }

  .product-size-options button {
    flex: initial;
    min-height: 36px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .product-limit-options {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 52px);
    z-index: 11;
    display: none !important;
    grid-template-columns: 1fr;
    gap: 6px;
    width: min(180px, calc(100vw - 32px));
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 12px;
    padding: 10px;
    background: rgba(245, 244, 239, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  }

  .product-limit-options.is-open {
    display: grid !important;
  }

  .product-limit-options button {
    min-height: 34px;
    border-radius: 999px;
    color: #050505;
    font-size: 0.72rem;
  }

  .product-limit-options button[aria-pressed="true"] {
    border-color: rgba(255, 58, 47, 0.72);
    background: rgba(255, 58, 47, 0.1);
    color: var(--accent);
  }

  .product-category-popover {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 20px);
    z-index: 11;
    display: none !important;
    gap: 8px;
    width: min(300px, calc(100vw - 32px));
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 12px;
    padding: 10px;
    background: rgba(245, 244, 239, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  }

  .product-category-popover.is-open {
    display: grid !important;
  }

  .product-category-popover input {
    min-height: 34px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(5, 5, 5, 0.035);
  }

  .product-category-options {
    position: static;
    display: flex !important;
    max-height: none;
    overflow: visible;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .product-category-popover:not(.is-open) .product-category-options {
    display: none !important;
  }

  .product-category-options button {
    min-height: 32px;
  }

  .product-editor footer {
    bottom: calc(16px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(430px, calc(42vw - 28px));
  }

  .product-editor-status[hidden] {
    display: none;
  }

  .product-editor footer button[type="submit"] {
    min-height: 42px;
  }
}

.product-preview-actions {
  position: relative;
  z-index: 6;
}

.product-preview-copy small {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.product-preview-copy[data-commerce-state="sold-out"] small {
  border-top: 1px solid rgba(5, 5, 5, 0.14);
  padding-top: 10px;
  color: rgba(5, 5, 5, 0.64);
}

.product-preview-copy[data-commerce-state="sold-out"] .product-preview-actions button[data-product-preview-intent] {
  background: #050505;
  color: white;
}

.product-preview-copy[data-commerce-state="sold-out"] .product-preview-actions button[data-product-preview-cart] {
  border: 1px solid rgba(5, 5, 5, 0.22);
  background: rgba(5, 5, 5, 0.08);
  color: #050505;
}

.product-preview-actions button[data-product-preview-edit] {
  border-color: rgba(5, 5, 5, 0.18);
  background: rgba(245, 244, 239, 0.92);
  color: #050505;
}

.product-manager-shell.is-open {
  position: fixed;
  inset: 0;
  z-index: 118;
  display: grid;
  padding: clamp(14px, 3vw, 34px);
}

.product-manager-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.product-manager {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  align-self: center;
  justify-self: center;
  width: min(1040px, 100%);
  height: min(780px, calc(100svh - 68px));
  border: 1px solid rgba(245, 239, 230, 0.16);
  border-radius: 20px;
  padding: clamp(16px, 2.4vw, 24px);
  background: #090909;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.product-manager header,
.product-manager-summary,
.product-manager-item,
.product-manager-item nav {
  display: flex;
  align-items: center;
}

.product-manager header {
  justify-content: space-between;
  gap: 18px;
}

.product-manager header p,
.product-manager h3 {
  margin: 0;
}

.product-manager header p {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-manager h3 {
  margin-top: 4px;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
}

.product-manager header > button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 0;
  background: rgba(245, 239, 230, 0.08);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

.product-manager-summary {
  gap: 12px;
  border-top: 1px solid rgba(245, 239, 230, 0.12);
  border-bottom: 1px solid rgba(245, 239, 230, 0.12);
  padding: 12px 0;
}

.product-manager-summary strong {
  font-size: 0.92rem;
}

.product-manager-summary span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-manager button {
  min-height: 36px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.product-manager [data-product-new] {
  border-color: rgba(255, 58, 47, 0.74);
  background: var(--accent);
  color: white;
}

.product-manager button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.product-manager [data-product-new]:hover {
  background: #ff3a2f;
}

.product-manager-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(245, 239, 230, 0.24) transparent;
}

.product-manager-item {
  gap: 14px;
  min-height: 96px;
  border: 1px solid rgba(245, 239, 230, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(245, 239, 230, 0.045);
}

.product-manager-item.is-selected {
  border-color: rgba(255, 58, 47, 0.72);
  background: rgba(255, 58, 47, 0.1);
}

.product-manager-item.is-unlisted {
  border-color: rgba(245, 239, 230, 0.08);
  background: rgba(245, 239, 230, 0.025);
}

.product-manager-item.is-unlisted img,
.product-manager-item.is-unlisted strong {
  opacity: 0.58;
}

.product-manager-item img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  background: #141414;
}

.product-manager-item > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.product-manager-item strong,
.product-manager-item code,
.product-manager-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-manager-item strong {
  font-size: 0.96rem;
}

.product-manager-item code {
  color: rgba(245, 239, 230, 0.66);
  font-size: 0.72rem;
}

.product-manager-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.product-manager-item nav {
  gap: 8px;
  flex: 0 0 auto;
}

.product-manager-item [data-product-select] {
  border-color: rgba(255, 58, 47, 0.72);
  background: rgba(255, 58, 47, 0.92);
  color: white;
}

.product-manager-item [data-product-select]:disabled {
  border-color: rgba(245, 239, 230, 0.18);
  background: rgba(245, 239, 230, 0.1);
  color: rgba(245, 239, 230, 0.54);
  cursor: default;
}

.product-manager-item [data-product-publication] {
  min-width: 58px;
}

@media (max-width: 720px) {
  .product-manager-shell.is-open {
    padding: 10px;
  }

  .product-manager {
    width: 100%;
    height: calc(100svh - 20px);
    border-radius: 16px;
    padding: 14px;
  }

  .product-manager-summary {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-manager [data-product-new] {
    width: 100%;
  }

  .product-manager-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "image copy"
      "actions actions";
    align-items: start;
    min-height: 138px;
    gap: 10px 12px;
    overflow: hidden;
  }

  .product-manager-summary span {
    white-space: normal;
  }

  .product-manager-item img {
    grid-area: image;
    width: 72px;
    height: 72px;
  }

  .product-manager-item > div {
    grid-area: copy;
    align-content: center;
  }

  .product-manager-item nav {
    grid-area: actions;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
    width: 100%;
  }

  .product-manager-item nav button {
    width: 100%;
  }
}

.edit-mode .composition-editor-controls {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  top: calc(var(--header-height) + 14px);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 36px);
  overflow-x: auto;
}

.composition-editor-controls span,
.composition-editor-controls button {
  min-height: 30px;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(5, 5, 5, 0.74);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.composition-editor-controls button {
  cursor: pointer;
}

.composition-editor-controls button:hover {
  background: rgba(245, 239, 230, 0.12);
}

.edit-mode .base-panel {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  bottom: 28px;
  z-index: 60;
  display: block;
  color: var(--ink);
}

.base-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(245, 239, 230, 0.22);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(5, 5, 5, 0.62);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.base-panel-toggle strong {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 58, 47, 0.9);
  color: #fff;
  font-size: 0.66rem;
  line-height: 1;
}

.base-panel-body {
  display: none;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  margin-top: 10px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(5, 5, 5, 0.76);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.base-panel.is-open .base-panel-body {
  display: grid;
}

.base-panel p,
.base-panel dl,
.base-panel small {
  margin: 0;
}

.base-panel p,
.base-panel dt {
  color: var(--dim);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.base-panel strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-panel small {
  display: block;
  margin-top: 8px;
  color: rgba(245, 239, 230, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

.base-panel .base-panel-toggle strong {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin: 0;
  overflow: visible;
  font-size: 0.66rem;
  line-height: 1;
}

.base-panel dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.base-panel dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.base-panel-advanced {
  width: 100%;
}

.base-panel-advanced summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.base-panel-advanced summary::-webkit-details-marker {
  display: none;
}

.base-panel-advanced > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.base-panel-actions button {
  min-height: 30px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.base-panel-actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.edit-mode .scene > .scene-order-controls {
  position: absolute;
  left: clamp(16px, 3vw, 36px);
  top: clamp(112px, 14vh, 148px);
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 6px;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.scene-order-controls span,
.scene-order-controls button {
  min-height: 30px;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(5, 5, 5, 0.78);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.scene-order-controls span {
  border-color: rgba(255, 58, 47, 0.42);
  color: rgba(245, 239, 230, 0.78);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.scene-order-controls button {
  cursor: pointer;
}

.scene-order-controls button:disabled {
  cursor: default;
  opacity: 0.42;
}

.scene-order-controls button:hover {
  background: rgba(245, 239, 230, 0.12);
}

.edit-mode .editor-toolbar {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 999px;
  padding: 8px;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.editor-toolbar span {
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.editor-toolbar button,
.editor-toolbar a,
.editor-toolbar-more summary {
  min-height: 34px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.editor-toolbar-more {
  position: relative;
}

.editor-toolbar-more summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
}

.editor-toolbar-more summary::-webkit-details-marker {
  display: none;
}

.editor-toolbar-more > div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 8px;
  width: max-content;
  min-width: 180px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 16px;
  padding: 8px;
  background: rgba(5, 5, 5, 0.86);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.editor-toolbar-more:not([open]) > div {
  display: none;
}

.editor-toolbar-more > div button {
  justify-content: flex-start;
  width: 100%;
  border-radius: 12px;
}

.editor-toolbar button:hover,
.editor-toolbar a:hover,
.editor-toolbar-more summary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.editor-toolbar [data-editor-publish] {
  border-color: rgba(255, 58, 47, 0.72);
  background: rgba(255, 58, 47, 0.92);
  color: white;
}

.editor-toolbar [data-editor-publish]:hover {
  background: rgba(255, 58, 47, 1);
}

.editor-toolbar button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.edit-mode .alignment-guides {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.edit-mode.is-dragging .alignment-guides {
  opacity: 1;
}

.alignment-guides span {
  position: absolute;
  display: block;
  background: rgba(245, 239, 230, 0.34);
  box-shadow: 0 0 18px rgba(255, 58, 47, 0.18);
}

.alignment-guides .guide-left,
.alignment-guides .guide-right,
.alignment-guides .guide-center-x {
  top: 0;
  bottom: 0;
  width: 1px;
}

.alignment-guides .guide-left {
  left: var(--guide-margin);
}

.alignment-guides .guide-right {
  right: var(--guide-margin);
}

.alignment-guides .guide-center-x {
  left: 50%;
  background: rgba(255, 58, 47, 0.72);
}

.alignment-guides .guide-center-y {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 58, 47, 0.72);
}

.alignment-guides::before,
.alignment-guides::after {
  position: absolute;
  color: rgba(245, 239, 230, 0.62);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.alignment-guides::before {
  content: "Safe margin";
  left: var(--guide-margin);
  top: calc(var(--header-height) + 10px);
  transform: translateX(8px);
}

.alignment-guides::after {
  content: "Center";
  left: calc(50% + 8px);
  top: calc(50% + 8px);
}

.edit-mode.snap-x .alignment-guides .guide-center-x,
.edit-mode.snap-y .alignment-guides .guide-center-y,
.edit-mode.snap-margin .alignment-guides .guide-left,
.edit-mode.snap-margin .alignment-guides .guide-right {
  background: rgba(255, 58, 47, 0.96);
  box-shadow: 0 0 22px rgba(255, 58, 47, 0.58);
}

.scroll-progress {
  position: fixed;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  bottom: 14px;
  z-index: 40;
  height: 2px;
  background: rgba(245, 239, 230, 0.12);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
}

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

@media (max-width: 980px) {
  .scene-meta {
    left: clamp(20px, 5vw, 44px);
    right: auto;
    bottom: 32px;
    max-width: calc(100% - 40px);
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand-mark span:last-child,
  .nav-links a:first-child,
  .nav-links a[href="#access"] {
    display: none;
  }

  .scene-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
    opacity: 0.78;
  }

  .scene-image {
    filter: saturate(0.98) contrast(1.05) brightness(1.04);
  }

  .scene.is-visible .scene-image {
    filter: saturate(1.02) contrast(1.06) brightness(1.06);
  }

  .scene.is-visible .scene-shade {
    opacity: 0.7;
  }

  .scene.has-product-focus .scene-shade {
    opacity: 0.22;
  }

  .scene-copy,
  .scene-copy.is-right {
    width: calc(100% - 36px);
    justify-self: start;
    margin: 0 18px 104px;
  }

  .scene h1 {
    font-size: clamp(4rem, 21vw, 6.8rem);
    line-height: 0.82;
  }

  .scene h2 {
    font-size: clamp(2.7rem, 13vw, 4.8rem);
  }

  .scene-line {
    margin-top: 22px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 9px;
  }

  .primary-link,
  .ghost-link {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.84rem;
  }

  .scene-meta {
    gap: 10px;
    font-size: 0.62rem;
  }

  .access-section {
    padding: 72px 18px 86px;
  }

  .access-content h2 {
    font-size: clamp(2.35rem, 12vw, 4.2rem);
  }

  .edit-mode .scene-copy,
  .edit-mode .access-content {
    outline-offset: 8px;
  }

  .edit-mode .editor-toolbar {
    left: 12px;
    right: 12px;
    bottom: 16px;
    overflow-x: auto;
    border-radius: 18px;
  }

  .edit-mode .header-editor-controls {
    left: 12px;
    right: 12px;
    top: calc(var(--header-height) + 8px);
    overflow-x: auto;
    border-radius: 18px;
  }

  .edit-mode .base-panel {
    left: 12px;
    right: 12px;
    bottom: 88px;
    width: auto;
  }

  .base-panel-body {
    width: auto;
  }

  .base-panel dl {
    grid-template-columns: 1fr 1fr;
  }

  .edit-mode .composition-editor-controls {
    left: 12px;
    right: 12px;
    top: calc(var(--header-height) + 10px);
    justify-content: flex-start;
  }

  .product-preview {
    display: block;
  }

  .product-preview-panel {
    width: 100%;
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
    animation-name: productPreviewMobileIn;
  }

  .product-preview-copy {
    padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .product-preview-copy h2 {
    font-size: clamp(1rem, var(--product-preview-title-size), 2.4rem);
  }

  .product-preview-nav,
  .image-lightbox-nav {
    width: 42px;
    height: 58px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.8rem;
    opacity: 0.42;
  }

  .editor-toolbar span {
    white-space: nowrap;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input {
    flex: 0 0 52px;
    height: 52px;
  }

  .signup-form input,
  .preference-toggle,
  .payment-select,
  .signup-form button,
  .access-handoff button {
    width: 100%;
  }

  .access-handoff div {
    display: grid;
  }

  .preference-group label {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

/* Android Chrome reports a top safe-area inset even after its browser chrome has
   already been excluded from the visual viewport. Keep the mobile controls in
   the same row as the brand without changing iOS or desktop geometry. */
@media (max-width: 700px) and (orientation: portrait) {
  html.is-android-browser {
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: none;
  }

  html.is-android-browser body {
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: none;
    touch-action: pan-y;
  }

  html.is-android-browser .scene {
    scroll-snap-stop: always;
  }

  html.is-android-browser .commerce-actions {
    top: calc((var(--header-height) - 31px) / 2);
  }

  html.is-android-browser body.shop-menu-open .commerce-actions {
    top: 7px;
  }

  html.is-android-browser .scene-image {
    transition:
      transform 440ms cubic-bezier(0.2, 0.78, 0.2, 1),
      filter 240ms ease;
  }

  html.is-android-browser .scene-shade {
    transition: opacity 240ms ease;
  }

  html.is-android-browser .scene.is-visible .scene-image {
    will-change: transform, filter;
  }
}

@media (max-width: 700px) and (max-height: 620px) {
  .product-preview-copy {
    grid-template-columns: minmax(0, 1fr) minmax(148px, 0.64fr);
    grid-template-areas:
      "summary purchase"
      "actions actions";
    height: min(190px, 42svh);
    max-height: 42svh;
    gap: 8px 10px;
    padding: 12px max(14px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    overflow-y: auto;
  }

  .product-preview-summary {
    gap: 4px;
    align-content: start;
  }

  .product-preview-summary h2 {
    font-size: clamp(1rem, var(--product-preview-title-size), 1.42rem);
    line-height: 1.02;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-preview-summary > p:nth-child(3),
  .product-preview-copy small {
    display: none;
  }

  .product-preview-purchase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .product-preview-purchase > span {
    font-size: 0.95rem;
  }

  .product-preview-purchase dl {
    grid-template-columns: 1fr;
    gap: 1px;
    overflow: visible;
  }

  .product-preview-purchase dl > div {
    border: 0;
    padding: 0;
    background: transparent;
  }

  .product-preview-purchase dt {
    font-size: 0.54rem;
    line-height: 1;
  }

  .product-preview-purchase dd {
    font-size: 0.62rem;
    line-height: 1.08;
  }

  .product-preview-actions {
    grid-area: actions;
    grid-template-columns: 1fr;
    grid-auto-rows: 40px;
    gap: 6px;
  }

  .product-preview-actions button {
    min-height: 40px;
  }
}

@keyframes productPreviewMobileIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focused product purchase bar: premium commerce layout for preview mode. */
.product-preview {
  --product-bar-height: clamp(136px, 16svh, 156px);
  --product-rail-gap: clamp(8px, 0.9vw, 14px);
  --product-rail-x: clamp(18px, 1.45vw, 26px);
  --product-rail-top: clamp(16px, 2svh, 22px);
  --product-rail-main-offset: 16px;
}

.product-preview-copy {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "summary purchase actions"
    "summary purchase note";
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: var(--product-rail-gap);
  height: var(--product-bar-height);
  max-height: min(28svh, 176px);
  overflow: hidden;
  padding: 0;
  border-top: 0;
  background: rgba(248, 247, 242, 0.98);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.product-preview-summary {
  padding: var(--product-rail-top) var(--product-rail-x);
  align-content: start;
  gap: 5px;
}

.product-preview-summary > p:first-child {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.08em;
}

.product-preview-summary h2 {
  max-width: min(100%, 34rem);
  font-size: clamp(1.42rem, var(--product-preview-title-size), 2.45rem);
  line-height: 1.02;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-preview-summary > p:nth-child(3) {
  max-width: 36rem;
  color: rgba(5, 5, 5, 0.62);
  font-size: clamp(0.74rem, var(--product-preview-description-size), 0.88rem);
  font-weight: 680;
  line-height: 1.42;
}

.product-preview-purchase {
  align-self: stretch;
  grid-template-rows: auto auto;
  padding: var(--product-rail-top) var(--product-rail-x);
  align-content: space-between;
  gap: 0;
  border-left: 0;
}

.product-preview-purchase > span {
  font-size: clamp(1.75rem, 2.7vw, 2.45rem);
  font-weight: 950;
  line-height: 0.96;
}

.product-preview-purchase dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(5, 5, 5, 0.12);
}

.product-preview-purchase dl > div {
  border: 0;
  border-right: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 0;
  padding: 10px 12px 2px 0;
  background: transparent;
}

.product-preview-purchase dl > div + div {
  padding-left: 12px;
}

.product-preview-purchase dl > div:last-child {
  border-right: 0;
}

.product-preview-purchase dt {
  color: rgba(5, 5, 5, 0.46);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.product-preview-purchase dd {
  margin-top: 5px;
  font-size: clamp(0.74rem, 0.9vw, 0.9rem);
  font-weight: 920;
  line-height: 1.22;
  white-space: normal;
}

.product-preview-actions {
  padding: var(--product-rail-top) var(--product-rail-x);
  align-self: stretch;
  align-content: center;
  display: grid;
  grid-auto-rows: minmax(58px, auto);
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-preview-actions button,
.product-preview-actions button:first-child:last-child,
.product-preview-actions button[hidden] + button,
.product-preview-actions button:not([hidden]):last-child {
  min-height: 58px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
}

.product-preview-actions button[data-product-preview-cart] {
  border: 1px solid rgba(5, 5, 5, 0.24);
  background: rgba(255, 255, 255, 0.32);
  color: #050505;
}

.product-preview-actions button:disabled {
  background: #071728;
  color: #fff;
}

.product-preview-copy small {
  grid-area: note;
  justify-self: stretch;
  padding: 0 var(--product-rail-x) var(--product-rail-top);
  max-width: none;
  color: rgba(5, 5, 5, 0.5);
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
}

.product-preview-copy[data-action-count="2"] {
  grid-template-areas: "summary purchase actions";
  grid-template-rows: minmax(0, 1fr);
}

.product-preview-copy[data-action-count="2"] .product-preview-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(58px, auto);
}

.product-preview-copy[data-action-count="2"] small {
  display: none;
}

@media (max-height: 620px) and (min-width: 901px) {
  .product-preview {
    --product-bar-height: 118px;
    --product-rail-top: 12px;
    --product-rail-main-offset: 12px;
  }

  .product-preview-copy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "summary purchase actions";
    height: var(--product-bar-height);
    max-height: 38svh;
  }

  .product-preview-summary {
    gap: 4px;
  }

  .product-preview-summary > p:nth-child(3),
  .product-preview-copy small {
    display: none;
  }

  .product-preview-summary h2 {
    font-size: clamp(1.12rem, var(--product-preview-title-size), 1.85rem);
  }

  .product-preview-purchase {
    gap: 8px;
  }

  .product-preview-purchase > span {
    font-size: 1.55rem;
  }

  .product-preview-purchase dl > div {
    padding-top: 8px;
  }

  .product-preview-actions {
    grid-auto-rows: 54px;
  }

  .product-preview-actions button,
  .product-preview-actions button:first-child:last-child,
  .product-preview-actions button[hidden] + button,
  .product-preview-actions button:not([hidden]):last-child {
    min-height: 54px;
  }

  .product-preview-copy[data-action-count="2"] .product-preview-actions {
    grid-auto-rows: 54px;
  }
}

@media (max-width: 980px) {
  .product-preview-copy {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.55fr);
    grid-template-areas:
      "summary purchase"
      "actions actions"
      "note note";
    height: min(48svh, 360px);
    max-height: 58svh;
    overflow-y: auto;
  }

  .product-preview-copy[data-action-count="2"] {
    grid-template-areas:
      "summary purchase"
      "actions actions";
  }

  .product-preview-purchase {
    border-left: 0;
    padding-left: 0;
  }
}

@media (min-width: 701px) and (max-width: 980px) and (max-height: 620px) {
  .product-preview-copy {
    height: min(190px, 42svh);
    max-height: 42svh;
  }

  .product-preview-actions {
    grid-auto-rows: 48px;
  }

  .product-preview-actions button,
  .product-preview-actions button:first-child:last-child,
  .product-preview-actions button[hidden] + button,
  .product-preview-actions button:not([hidden]):last-child {
    min-height: 48px;
  }

  .product-preview-copy[data-action-count="2"] .product-preview-actions {
    grid-auto-rows: 48px;
  }
}

@media (max-width: 700px) {
  .product-preview-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "purchase"
      "actions"
      "note";
    height: min(56svh, 390px);
    max-height: 60svh;
  }

  .product-preview-summary {
    padding: var(--product-rail-top) var(--product-rail-x) 0;
  }

  .product-preview-purchase {
    padding: var(--product-rail-top) var(--product-rail-x);
  }

  .product-preview-actions {
    padding: var(--product-rail-top) var(--product-rail-x) var(--product-rail-top);
  }

  .product-preview-copy[data-action-count="2"] {
    grid-template-areas:
      "summary"
      "purchase"
      "actions";
  }

  .product-preview-purchase dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) and (max-height: 620px) {
  .product-preview {
    --product-rail-top: 12px;
  }

  .product-preview-copy {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.66fr);
    grid-template-areas:
      "summary purchase"
      "actions actions";
    height: min(190px, 42svh);
    max-height: 42svh;
    gap: 8px 10px;
    overflow-y: auto;
  }

  .product-preview-summary > p:nth-child(3),
  .product-preview-copy small {
    display: none;
  }

  .product-preview-summary h2 {
    font-size: clamp(1rem, var(--product-preview-title-size), 1.42rem);
  }

  .product-preview-purchase {
    gap: 3px;
    padding-top: 12px;
  }

  .product-preview-purchase > span {
    font-size: 0.95rem;
  }

  .product-preview-purchase dl {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .product-preview-purchase dl > div,
  .product-preview-purchase dl > div + div {
    border-right: 0;
    padding: 0;
  }

  .product-preview-purchase dt {
    font-size: 0.54rem;
    line-height: 1;
  }

  .product-preview-purchase dd {
    margin-top: 2px;
    font-size: 0.62rem;
    line-height: 1.08;
  }

  .product-preview-actions {
    grid-area: actions;
    grid-auto-rows: 40px;
    gap: 6px;
    padding-bottom: 12px;
  }

  .product-preview-copy[data-action-count="2"] .product-preview-actions {
    grid-auto-rows: 40px;
  }

  .product-preview-actions button,
  .product-preview-actions button:first-child:last-child,
  .product-preview-actions button[hidden] + button,
  .product-preview-actions button:not([hidden]):last-child {
    min-height: 40px;
  }
}

@media (orientation: landscape) {
  .product-preview-panel {
    height: 100svh;
    padding-bottom: 0;
    overflow: hidden;
    background: #f5f4ef;
  }

  .product-preview-media {
    height: var(--product-media-height, calc(100svh - var(--product-bar-height)));
    max-height: calc(100svh - var(--product-bar-height));
    background: #f5f4ef;
    transition: none;
  }

  .product-preview-track {
    gap: clamp(8px, 0.9vw, 14px);
    padding: 0;
    scroll-padding-inline: 0;
  }

  .product-preview-slide,
  .product-preview-slide:first-child {
    flex: 0 0 calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
    width: calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
  }

  .product-preview-slide img {
    object-fit: cover;
  }
}

@media (orientation: portrait) {
  .product-preview-panel {
    height: 100svh;
    padding-bottom: 0;
    overflow: hidden auto;
    background: #f5f4ef;
  }

  .product-preview-media {
    flex: 0 0 auto;
    height: var(--product-media-height, 75svh);
    max-height: none;
    background: #f5f4ef;
    overscroll-behavior: auto;
    touch-action: pan-y;
  }

  .product-preview-slide img {
    object-fit: contain;
  }

  .product-preview-track {
    gap: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: none;
    scroll-padding-inline: 0;
    overscroll-behavior: auto;
    touch-action: pan-y;
  }

  .product-preview-slide,
  .product-preview-slide:first-child {
    flex: 0 0 100%;
    width: 100%;
  }

  .product-preview-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: min(44svh, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .product-preview-count {
    right: 14px;
    bottom: 14px;
  }

  .product-preview-dots {
    bottom: 5px;
  }

  .product-preview-dots button {
    flex: 1 1 0;
    min-width: 6px;
    max-width: none;
  }
}

@media (orientation: portrait) and (max-width: 700px) {
  .product-preview {
    --product-rail-x: max(16px, env(safe-area-inset-left));
    --product-rail-top: clamp(11px, 1.8svh, 14px);
    --product-rail-gap: 10px;
  }

  .product-preview-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "purchase"
      "actions"
      "note";
    grid-template-rows: auto auto auto auto;
    gap: 0;
    max-height: min(43svh, 312px);
    padding: 0;
    background: rgba(248, 247, 242, 0.98);
    box-shadow: none;
    backdrop-filter: blur(12px);
  }

  .product-preview-summary {
    padding: var(--product-rail-top) var(--product-rail-x) 0;
    gap: 4px;
  }

  .product-preview-summary > p:first-child {
    font-size: 0.58rem;
  }

  .product-preview-summary h2 {
    font-size: clamp(1.18rem, var(--product-preview-title-size), 1.76rem);
    line-height: 1.02;
  }

  .product-preview-summary > p:nth-child(3) {
    display: -webkit-box;
    max-height: 2.64em;
    overflow: hidden;
    font-size: clamp(0.68rem, var(--product-preview-description-size), 0.78rem);
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-preview-purchase {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: end;
    gap: 10px;
    padding: 8px var(--product-rail-x) 0;
  }

  .product-preview-purchase > span {
    align-self: end;
    font-size: clamp(1.28rem, 6vw, 1.9rem);
  }

  .product-preview-purchase dl {
    align-self: end;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(5, 5, 5, 0.12);
  }

  .product-preview-purchase dl > div,
  .product-preview-purchase dl > div + div {
    border-right: 1px solid rgba(5, 5, 5, 0.1);
    padding: 8px 8px 0 0;
  }

  .product-preview-purchase dl > div + div {
    padding-left: 8px;
  }

  .product-preview-purchase dl > div:last-child {
    border-right: 0;
  }

  .product-preview-purchase dt {
    font-size: 0.54rem;
  }

  .product-preview-purchase dd {
    margin-top: 3px;
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .product-preview-actions {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(54px, auto);
    gap: 8px;
    padding: 12px var(--product-rail-x) 0;
  }

  .product-preview-copy[data-action-count="2"] .product-preview-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(54px, auto);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .product-preview-actions button,
  .product-preview-actions button:first-child:last-child,
  .product-preview-actions button[hidden] + button,
  .product-preview-actions button:not([hidden]):last-child {
    grid-column: auto;
    min-height: 54px;
    font-size: 0.78rem;
  }

  .product-preview-copy small {
    display: block;
    padding: 8px var(--product-rail-x) calc(12px + env(safe-area-inset-bottom));
    font-size: 0.66rem;
    line-height: 1.28;
  }

  .product-preview-copy[data-action-count="2"] small {
    display: none;
  }

  .product-preview-nav {
    width: 38px;
    height: 52px;
  }
}

@media (orientation: portrait) and (max-width: 700px) and (max-height: 620px) {
  .product-preview {
    --product-rail-top: 10px;
  }

  .product-preview-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "summary purchase"
      "actions actions";
    max-height: min(38svh, 216px);
    gap: 0 10px;
  }

  .product-preview-copy[data-action-count="2"] {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "summary purchase"
      "actions actions";
    grid-template-rows: auto auto;
  }

  .product-preview-summary {
    min-width: 0;
    padding-right: 0;
  }

  .product-preview-summary > p:nth-child(3),
  .product-preview-copy small {
    display: none;
  }

  .product-preview-summary h2 {
    font-size: clamp(1rem, var(--product-preview-title-size), 1.34rem);
  }

  .product-preview-purchase {
    align-content: start;
    grid-template-columns: 1fr;
    min-width: 132px;
    padding-left: 0;
  }

  .product-preview-purchase > span {
    justify-self: end;
    font-size: clamp(0.96rem, 5vw, 1.2rem);
  }

  .product-preview-purchase dl {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .product-preview-purchase dl > div,
  .product-preview-purchase dl > div + div {
    border-right: 0;
    padding: 0;
  }

  .product-preview-purchase dt {
    font-size: 0.52rem;
    line-height: 1;
  }

  .product-preview-purchase dd {
    margin-top: 2px;
    font-size: 0.62rem;
    line-height: 1.08;
  }

  .product-preview-actions,
  .product-preview-copy[data-action-count="2"] .product-preview-actions {
    grid-template-columns: 1fr;
    grid-auto-rows: 40px;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .product-preview-actions button,
  .product-preview-actions button:first-child:last-child,
  .product-preview-actions button[hidden] + button,
  .product-preview-actions button:not([hidden]):last-child {
    min-height: 40px;
  }
}

.product-size-options-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  color: rgba(5, 5, 5, 0.56);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.product-size-options .product-size-options-head button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: #050505;
  color: #fff;
  font-size: 0.66rem;
}

.product-preview-copy[data-preview-mode="edit"] {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) minmax(260px, 0.72fr);
  grid-template-areas: "summary purchase actions";
  grid-template-rows: minmax(0, 1fr);
  height: clamp(130px, 16svh, 160px);
  max-height: min(24svh, 174px);
  overflow: visible;
}

.product-preview-copy[data-preview-mode="edit"] .product-preview-summary,
.product-preview-copy[data-preview-mode="edit"] .product-preview-purchase,
.product-preview-copy[data-preview-mode="edit"] .product-preview-actions {
  min-width: 0;
}

.product-preview-copy[data-preview-mode="edit"] .product-preview-purchase {
  overflow: hidden;
}

.product-preview-copy[data-preview-mode="edit"] .product-preview-purchase dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-preview-copy[data-preview-mode="edit"] .product-preview-purchase dd {
  overflow: hidden;
}

.product-preview-copy[data-preview-mode="edit"] .product-preview-actions {
  position: relative;
  z-index: 6;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(54px, auto);
  align-content: center;
  padding-bottom: var(--product-rail-top);
}

.product-preview-copy[data-preview-mode="edit"] .product-preview-actions button:not([hidden]) {
  grid-column: 1;
  width: 100%;
}

.product-preview-copy[data-preview-mode="edit"] small {
  display: none;
}

@media (orientation: portrait) {
  .product-preview-copy[data-preview-mode="edit"] {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "purchase"
      "actions";
    grid-template-rows: auto auto auto;
    height: auto;
    max-height: min(44svh, 320px);
    overflow-y: auto;
  }
}

@media (max-width: 700px) {
  .product-preview-copy[data-preview-mode="edit"] {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "purchase"
      "actions";
  }

  .product-preview-copy[data-preview-mode="edit"] .product-preview-actions {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-height: 620px) and (min-width: 901px) {
  .product-preview-copy[data-preview-mode="edit"] {
    height: 126px;
    max-height: 36svh;
  }

  .product-preview-copy[data-preview-mode="edit"] .product-preview-summary > p:nth-child(3) {
    display: none;
  }

  .product-preview-copy[data-preview-mode="edit"] .product-preview-actions {
    grid-auto-rows: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

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

.product-image-editor-chrome {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: clamp(14px, 2vw, 22px);
  z-index: 8;
  display: grid;
  grid-template-areas:
    "toolbar toolbar"
    "count dots";
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 12px;
  align-items: center;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.product-image-editor.is-empty .product-image-editor-chrome {
  display: none;
}

.product-image-editor.has-field-popover .product-image-editor-chrome {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.product-image-toolbar {
  grid-area: toolbar;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(100%, 560px);
  pointer-events: auto;
}

.product-image-toolbar button {
  min-height: 34px;
  border: 1px solid rgba(245, 239, 230, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(5, 5, 5, 0.64);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
  backdrop-filter: blur(16px);
}

.product-image-toolbar button:disabled {
  opacity: 0.46;
}

.product-image-editor .product-image-editor-chrome [data-product-image-counter] {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  grid-area: auto;
  justify-self: auto;
  min-width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(5, 5, 5, 0.64);
  color: rgba(245, 239, 230, 0.84);
  font-size: 0.66rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.product-image-editor .product-image-editor-chrome .product-image-dots,
.product-image-editor:not(.is-empty) .product-image-editor-chrome .product-image-dots {
  display: none;
}

.product-editor .product-image-editor-chrome .product-image-dots button {
  width: auto;
  height: 2px;
  min-height: 2px;
}

.product-size-field small,
.product-quantity-field small,
.product-category-field small,
.product-status-field::after {
  display: none !important;
  content: none !important;
}

.product-size-trigger:focus,
.product-limit-trigger:focus,
.product-category-trigger:focus {
  outline: none;
  box-shadow: none;
}

.product-size-trigger:focus-visible,
.product-limit-trigger:focus-visible,
.product-category-trigger:focus-visible {
  box-shadow: inset 0 -2px 0 rgba(255, 58, 47, 0.78);
}

.product-category-trigger::after {
  content: none !important;
}

.product-size-options,
.product-limit-options,
.product-category-popover {
  position: fixed !important;
  display: none !important;
  left: var(--product-editor-popover-left, 16px) !important;
  top: var(--product-editor-popover-top, 16px) !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 120 !important;
  width: min(var(--product-editor-popover-width, 260px), calc(100vw - 28px)) !important;
  max-height: min(var(--product-editor-popover-max-height, 260px), calc(100svh - 28px)) !important;
  overflow: auto;
  overscroll-behavior: contain;
  transform: none !important;
}

.product-size-options.is-open,
.product-limit-options.is-open,
.product-category-popover.is-open {
  display: grid !important;
}

.product-size-options {
  --product-editor-popover-width: 268px;
}

.product-limit-options {
  --product-editor-popover-width: 190px;
}

.product-category-popover {
  --product-editor-popover-width: 304px;
  gap: 8px;
}

.product-category-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(5, 5, 5, 0.72);
  font-size: 0.66rem;
  font-weight: 950;
}

.product-category-popover-head button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(255, 58, 47, 0.24);
}

.product-editor .product-category-popover-head button:hover,
.product-editor .product-category-popover-head button:focus-visible {
  background: #ff2f25;
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 58, 47, 0.34);
  transform: translateY(-1px);
}

.product-category-popover > small,
.product-category-editor small {
  color: rgba(5, 5, 5, 0.52);
  font-size: 0.62rem;
  font-weight: 760;
  line-height: 1.35;
}

.product-category-popover .product-category-options {
  position: static !important;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: none;
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.product-category-options button {
  min-height: 32px;
}

.product-category-options button[aria-pressed="true"] {
  border-color: rgba(255, 58, 47, 0.72);
  background: rgba(255, 58, 47, 0.1);
  color: var(--accent);
}

.product-category-editor {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(5, 5, 5, 0.1);
  padding-top: 10px;
}

.product-category-editor[hidden] {
  display: none !important;
}

.product-category-editor input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(5, 5, 5, 0.035);
  color: #050505;
  font-size: 0.78rem;
  font-weight: 850;
}

.product-category-editor > span {
  display: flex;
  gap: 8px;
}

.product-category-editor button {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.7rem;
}

.product-category-editor [data-product-category-edit-save] {
  border-color: rgba(5, 5, 5, 0.9);
  background: #050505;
  color: white;
}

@media (max-width: 720px) {
  .product-image-editor-chrome {
    grid-template-areas:
      "toolbar"
      "dots"
      "count";
    grid-template-columns: 1fr;
  }

  .product-image-toolbar {
    justify-self: center;
    justify-content: center;
  }

  .product-image-editor .product-image-editor-chrome [data-product-image-counter] {
    justify-self: center;
  }
}

.product-editor-shell.is-product-gallery-layout .product-editor-slide {
  flex: 0 0 calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
  width: calc((100vw - clamp(16px, 1.8vw, 28px)) / 3);
}

.product-editor-shell.is-product-single-layout .product-editor-slide {
  flex: 0 0 100vw;
  width: 100vw;
}

/* Mobile product preview: image-first, natural media height, information follows. */
@media (max-width: 700px) and (orientation: portrait) {
  .product-preview {
    --product-mobile-x: max(18px, env(safe-area-inset-left));
    --product-mobile-y: clamp(18px, 3.1svh, 28px);
    background: #f5f1e9;
  }

  .product-preview-panel {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    background: #f5f1e9;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-preview-media {
    height: var(--product-media-height, 62svh);
    z-index: 1;
    background: #050505;
    transition: height 520ms cubic-bezier(0.22, 1, 0.36, 1);
    touch-action: pan-y pinch-zoom;
  }

  .product-preview-track {
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    touch-action: pan-y pinch-zoom;
    transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .product-preview-slide {
    background: #050505;
  }

  .product-preview-slide img {
    object-fit: contain;
    background: #050505;
    transition:
      opacity 420ms ease,
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .product-preview-dots {
    z-index: 4;
    bottom: var(--product-preview-progress-bottom, 9px);
    width: min(var(--product-preview-progress-width, 80%), calc(100% - 36px));
    transition:
      bottom 520ms cubic-bezier(0.22, 1, 0.36, 1),
      width 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .product-preview-dots button {
    height: 2px;
    min-height: 2px;
    background: rgba(255, 255, 255, 0.28);
  }

  .product-preview-dots button[aria-current="true"] {
    background: rgba(255, 255, 255, 0.92);
  }

  .product-preview-count {
    z-index: 4;
    right: var(--product-mobile-x);
    bottom: var(--product-preview-count-bottom, 22px);
    height: 30px;
    padding: 0 12px;
    background: rgba(5, 5, 5, 0.5);
    color: rgba(245, 241, 233, 0.88);
    font-size: 0.72rem;
    line-height: 30px;
    transition: bottom 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .product-preview-nav {
    display: none;
  }

  .product-preview-close {
    right: var(--product-mobile-x);
    top: max(14px, env(safe-area-inset-top));
    width: 42px;
    height: 42px;
    background: rgba(5, 5, 5, 0.42);
  }

  .product-preview-copy,
  .product-preview-copy[data-action-count="2"] {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "summary price"
      "purchase purchase"
      "actions actions"
      "note note";
    grid-template-rows: auto auto auto auto;
    gap: 18px 16px;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 26px var(--product-mobile-x) calc(20px + env(safe-area-inset-bottom));
    background: #f5f1e9;
    box-shadow: none;
    backdrop-filter: none;
  }

  .product-preview-summary {
    grid-area: summary;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 0;
  }

  .product-preview-summary > p:first-child {
    color: rgba(5, 5, 5, 0.46);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .product-preview-summary h2 {
    max-width: min(100%, 13em);
    color: #050505;
    font-size: clamp(1.78rem, var(--product-preview-title-size), 2.55rem);
    font-weight: 900;
    line-height: 1.08;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .product-preview-summary > p:nth-child(3) {
    display: -webkit-box;
    max-width: min(100%, 24em);
    overflow: hidden;
    color: rgba(5, 5, 5, 0.54);
    font-size: clamp(0.88rem, var(--product-preview-description-size), 1rem);
    font-weight: 720;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-preview-purchase {
    display: contents;
  }

  .product-preview-purchase > span {
    grid-area: price;
    align-self: start;
    justify-self: end;
    padding-top: 28px;
    color: #050505;
    font-size: clamp(1.8rem, 7.5vw, 2.25rem);
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
  }

  .product-preview-purchase dl {
    grid-area: purchase;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(5, 5, 5, 0.1);
    margin: 0;
    padding: 0;
  }

  .product-preview-purchase dl > div,
  .product-preview-purchase dl > div + div,
  .product-preview-purchase dl > div:last-child {
    display: grid;
    grid-template-columns: minmax(72px, 0.35fr) minmax(0, 1fr);
    align-items: center;
    min-height: 52px;
    border: 0;
    border-bottom: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .product-preview-purchase dt {
    color: rgba(5, 5, 5, 0.44);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
  }

  .product-preview-purchase dd {
    justify-self: end;
    margin: 0;
    color: #050505;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: right;
  }

  .product-preview-purchase dd[data-product-preview-sizes],
  .product-preview-purchase dd[data-product-preview-category] {
    justify-content: flex-end;
  }

  .product-preview-actions,
  .product-preview-copy[data-action-count="2"] .product-preview-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 56px;
    gap: 10px;
    position: relative;
    bottom: auto;
    z-index: 1;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
  }

  .product-preview-actions button {
    position: relative;
    z-index: 1;
  }

  .product-preview-actions button,
  .product-preview-actions button:first-child:last-child,
  .product-preview-actions button[hidden] + button,
  .product-preview-actions button:not([hidden]):last-child {
    grid-column: auto;
    min-height: 56px;
    border-radius: 999px;
    font-size: 0.86rem;
  }

  .product-preview-actions button[data-product-preview-cart] {
    border: 1px solid rgba(5, 5, 5, 0.16);
    background: rgba(5, 5, 5, 0.06);
    color: #050505;
  }

  .product-preview-actions button[data-product-preview-buy] {
    background: #050505;
    color: #f5f1e9;
  }

  .product-preview-copy small,
  .product-preview-copy[data-action-count="2"] small {
    grid-area: note;
    display: block;
    max-width: none;
    padding: 0;
    color: rgba(5, 5, 5, 0.46);
    font-size: 0.72rem;
    line-height: 1.55;
    text-align: left;
  }
}

@media (max-width: 390px) and (orientation: portrait) {
  .product-preview-copy,
  .product-preview-copy[data-action-count="2"] {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "price"
      "purchase"
      "actions"
      "note";
    gap: 14px;
    padding-top: 22px;
  }

  .product-preview-purchase > span {
    justify-self: start;
    padding-top: 0;
  }

  .product-preview-actions,
  .product-preview-copy[data-action-count="2"] .product-preview-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 56px;
  }
}
.product-preview-media[data-archive-state="historical"]::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 0 68px rgba(255, 255, 255, 0.11),
    inset 0 -16px 36px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(1.1px) saturate(1.2) contrast(0.99);
  -webkit-backdrop-filter: blur(1.1px) saturate(1.2) contrast(0.99);
  content: "";
  pointer-events: none;
}

.product-preview-media[data-archive-state="historical"]::after {
  content: none;
}

.product-preview-copy[data-commerce-state="unlisted"] .product-preview-purchase dl > div[hidden] {
  display: none;
}

.product-preview-copy[data-commerce-state="unlisted"] [data-product-preview-intent] {
  order: 1;
}

.product-preview-copy[data-commerce-state="unlisted"] [data-product-preview-cart] {
  order: 2;
}
