/* SJC product pages — fabric and ready-to-wear. Needs rail.css (tokens + the hanging-cloth figure). */

.sjc-product {
  --sp-gap: clamp(20px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  color: var(--sr-ink);
  font-family: var(--sr-sans);
}

.sjc-product .sp-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: var(--sp-gap);
  align-items: start;
}

/* ---------- Stage ---------- */

.sjc-product .sp-stage { position: sticky; top: 24px; }
.sjc-product .sp-view-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background:
    radial-gradient(70% 55% at 50% 40%, #fbf8f3 0%, rgba(251, 248, 243, 0) 70%),
    var(--sr-calico);
}
/* Flex, not grid: images can then size to the box's height (a grid row's height is "auto"). */
.sjc-product .sp-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.sjc-product .sp-view.is-current { opacity: 1; pointer-events: auto; }

/* Draped: the print on its hanger, from a wooden rail, moving a little in the air */
.sjc-product .sp-view--draped::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(9% + var(--w, 300px) * 0.0575 - 5px);
  height: 10px;
  background: linear-gradient(180deg, #b78559 0%, #7d4f2c 46%, #4b2e18 100%);
  box-shadow: 0 3px 4px -1px rgba(50, 28, 12, 0.32);
}
.sjc-product .sp-view--draped { align-items: flex-start; }
.sjc-product .sp-hang {
  --w: clamp(220px, 25vw, 320px);
  position: relative;
  display: block;
  width: var(--w);
  height: calc(var(--w) * 1.7);
  margin-top: 9%;
}
.sjc-product .sp-hang {
  perspective: 1300px;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}
.sjc-product .sp-hang.is-dragging { cursor: grabbing; }
.sjc-product .sp-hang:focus-visible { outline: 2px solid var(--sr-indigo); outline-offset: 10px; border-radius: 8px; }
.sjc-product .sp-hang .sr-turn {
  left: 0;
  transition: transform 0.7s var(--sr-settle);
}
.sjc-product .sp-hang.is-dragging .sr-turn { transition: none; }
/* The cloth in folds. Nothing between the hanger and the folds may flatten 3D (no filter, overflow or clip-path). */
.sjc-product .sp-hang .sr-fig { transform-style: preserve-3d; }
.sjc-product .sp-cloth3d {
  position: absolute;
  top: calc(var(--w) * 0.25);
  left: 10%;
  width: 80%;
  height: calc(var(--w) * 1.38);
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  transform: rotateZ(var(--sway, 0deg));
  transition: transform 0.9s var(--sr-settle);
}
.sjc-product .sp-hang.is-dragging .sp-cloth3d { transition: transform 0.25s ease-out; }
.sjc-product .sp-fold,
.sjc-product .sp-cloth-back {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 100%;
  background-repeat: no-repeat;
  transform-origin: 0 50%;
  backface-visibility: visible;
}
.sjc-product .sp-fold {
  background-size: calc(var(--n) * 100%) 100%;
  background-position: calc(var(--k) * 100% / (var(--n) - 1)) 0;
}
.sjc-product .is-fallback .sp-fold,
.sjc-product .is-fallback .sp-cloth-back { background-size: calc(var(--n) * 190%) 190%; background-position: calc(20% + var(--k) * 60% / (var(--n) - 1)) 50%; }
/* Hem dips at the outer edge of each fold */
.sjc-product .sp-fold:nth-child(even) { clip-path: polygon(0 0, 100% 0, 100% 97.5%, 0 99.5%); }
.sjc-product .sp-fold:nth-child(odd) { clip-path: polygon(0 0, 100% 0, 100% 99.5%, 0 97.5%); }
/* Each fold: a soft round highlight across it, and shade set by how it faces the light (product.js) */
.sjc-product .sp-fold::before,
.sjc-product .sp-fold::after,
.sjc-product .sp-cloth-back::after {
  content: "";
  position: absolute;
  inset: 0;
}
.sjc-product .sp-fold::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0, rgba(255, 255, 255, 0.16) 2.5%, rgba(255, 255, 255, 0) 7%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.09) 45%, rgba(0, 0, 0, 0.12));
}
.sjc-product .sp-fold::after,
.sjc-product .sp-cloth-back::after {
  background: rgb(18, 12, 6);
  opacity: var(--shade, 0.2);
  transition: opacity 0.25s linear;
}
.sjc-product .sp-cloth-back {
  width: 100%;
  height: 107%;
  background-size: 100% 100%;
  transform-origin: 50% 50%;
  transform: translateZ(-14px) scaleX(-1);
  clip-path: polygon(2% 0, 98% 0, 100% 98%, 85% 100%, 70% 98.5%, 50% 100%, 30% 98.5%, 15% 100%, 0 98%);
  --shade: 0.42;
}
.sjc-product .sp-tex-preload { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sjc-product .sp-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -4%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(50, 32, 14, 0.24), rgba(50, 32, 14, 0));
  pointer-events: none;
}
.sjc-product .sp-spin-hint {
  position: absolute;
  left: 50%;
  bottom: -38px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(30, 28, 42, 0.78);
  color: #fff;
  font: 700 11.5px/1 var(--sr-sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.sjc-product .sp-spin-hint::before { content: "\21BB  "; }
.sjc-product .sp-spin-hint.is-gone { opacity: 0; }
.sjc-product .sp-hang .sr-fig { animation: sp-breeze 7s ease-in-out infinite; }
@keyframes sp-breeze {
  0%, 100% { rotate: 0deg; }
  30% { rotate: 1.1deg; }
  65% { rotate: -0.8deg; }
}

.sjc-product .sp-view > img {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.sjc-product .sp-view--photo > img { width: 82%; height: 82%; object-fit: contain; }
.sjc-product .sp-view--closeup { cursor: zoom-in; }
.sjc-product .sp-view--closeup > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.sjc-product .sp-view--closeup.is-zooming > img { transform: scale(2); }
/* Ready-to-wear: the real studio photo fills the frame (square photo, 4:5 frame: only empty backdrop is trimmed). */
.sjc-product .sp-view--shot { touch-action: pan-y; cursor: grab; }
.sjc-product .sp-view--shot > img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: 50% 50%; }
.sjc-product .sp-view--ai { padding: 6%; box-sizing: border-box; }
.sjc-product .sp-view--ai > img { border-radius: 16px; box-shadow: 0 20px 44px rgba(40, 30, 20, 0.2); }
.sjc-product .sp-view-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(30, 28, 42, 0.8);
  color: #fff;
  font: 700 11px/1.2 var(--sr-sans);
  letter-spacing: 0.06em;
}

.sjc-product .sp-view-box.is-making::after {
  content: attr(data-making);
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 3;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(30, 28, 42, 0.84);
  color: #fff;
  font: 700 12.5px/1.2 var(--sr-sans);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.sjc-product .sp-view-box.is-making .sp-view.is-current { animation: sp-breathe 1.6s ease-in-out infinite; }
@keyframes sp-breathe { 50% { opacity: 0.55; } }

/* View chips */
.sjc-product .sp-views {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.sjc-product .sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0 14px 0 6px;
  border: 1.5px solid var(--sr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sr-ink);
  font: 700 12.5px/1 var(--sr-sans);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.sjc-product .sp-chip:hover { border-color: var(--sr-ink); background: #fff; color: var(--sr-ink); }
.sjc-product .sp-chip[aria-pressed="true"] { border-color: var(--sr-indigo); background: var(--sr-indigo); color: #fff; }
.sjc-product .sp-chip:focus-visible { outline: 2px solid var(--sr-indigo); outline-offset: 2px; }
.sjc-product .sp-chip-thumb {
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sr-calico) center / cover no-repeat;
}
.sjc-product .sp-chip--figure { width: 52px; height: 66px; padding: 0; overflow: hidden; border-radius: 10px; justify-content: center; }
.sjc-product .sp-chip--figure img { width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.sjc-product .sp-chip--figure[aria-pressed="true"] { background: #fff; }
.sjc-product .sp-chip--ai { position: relative; }
.sjc-product .sp-chip--ai i {
  position: absolute;
  right: -4px;
  top: -6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--sr-red);
  color: #fff;
  font: 800 8.5px/1.4 var(--sr-sans);
  font-style: normal;
  letter-spacing: 0.06em;
}

/* ---------- Info ---------- */

.sjc-product .sp-info { padding-top: clamp(0px, 2vw, 18px); }
.sjc-product .sp-eyebrow {
  margin: 0 0 12px;
  font: 700 11px/1.4 var(--sr-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sr-muted);
}
.sjc-product .sp-name {
  margin: 0 0 12px;
  font: 400 clamp(30px, 3.6vw, 44px)/1.1 var(--sr-serif);
  letter-spacing: 0;
  text-transform: none;
  color: var(--sr-ink);
}
.sjc-product .sp-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  font: 600 26px/1.2 var(--sr-head);
  color: var(--sr-indigo);
}
.sjc-product .sp-price span { font: 600 13px/1.3 var(--sr-sans); color: var(--sr-muted); }
.sjc-product .sp-lede { max-width: 52ch; margin: 0 0 22px; font: 400 15.5px/1.6 var(--sr-sans); color: var(--sr-muted); }

.sjc-product .sp-buy { margin: 0; }
.sjc-product .sp-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font: 700 11px/1.4 var(--sr-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sr-muted);
}
.sjc-product .sp-size-help {
  font: 600 12.5px/1.4 var(--sr-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--sr-indigo);
  text-underline-offset: 3px;
}

.sjc-product .sp-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.sjc-product .sp-size {
  min-width: 52px;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--sr-line);
  border-radius: 12px;
  background: #fff;
  color: var(--sr-ink);
  font: 700 15px/1 var(--sr-sans);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.sjc-product .sp-size:hover { border-color: var(--sr-ink); background: #fff; color: var(--sr-ink); }
.sjc-product .sp-size[aria-checked="true"] { border-color: var(--sr-indigo); background: var(--sr-indigo); color: #fff; }
.sjc-product .sp-size:disabled { border-style: dashed; color: rgba(30, 28, 42, 0.35); text-decoration: line-through; cursor: not-allowed; }
.sjc-product .sp-size:focus-visible { outline: 2px solid var(--sr-indigo); outline-offset: 2px; }
.sjc-product .sp-sizes.is-nudged { animation: sp-nudge 0.4s ease; }
@keyframes sp-nudge {
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.sjc-product .sp-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0 0 16px; }
.sjc-product .sp-qty-btn,
.sjc-product .sp-qty input {
  height: 48px;
  margin: 0;
  border: 1.5px solid var(--sr-line);
  background: #fff;
  color: var(--sr-ink);
  font: 700 17px/1 var(--sr-sans);
}
.sjc-product .sp-qty-btn { width: 48px; padding: 0; cursor: pointer; }
.sjc-product .sp-qty-btn:first-child { border-radius: 12px 0 0 12px; }
.sjc-product .sp-qty input {
  width: 56px;
  padding: 0;
  border-width: 1.5px 0;
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}
.sjc-product .sp-qty input::-webkit-inner-spin-button,
.sjc-product .sp-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sjc-product .sp-qty-btn[data-d="1"] { border-radius: 0 12px 12px 0; }
.sjc-product .sp-qty-btn:hover { background: var(--sr-calico); color: var(--sr-ink); }
.sjc-product .sp-qty-note { flex: 1 1 160px; font: 400 13px/1.4 var(--sr-sans); color: var(--sr-muted); }

.sjc-product .sp-add,
.sjc-product .sp-make,
.sjc-product .sp-ai,
.sjc-product .sp-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 8px 22px;
  border-radius: 999px;
  font: 700 15px/1.2 var(--sr-sans);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.sjc-product .sp-add { border: 0; background: var(--sr-red); color: #fff; box-shadow: 0 10px 24px rgba(235, 49, 55, 0.24); }
.sjc-product .sp-add:hover { background: #d2252b; color: #fff; }
.sjc-product .sp-add[aria-disabled="true"] { background: rgba(235, 49, 55, 0.5); box-shadow: none; }
.sjc-product .sp-add.is-done { background: var(--sr-ink); box-shadow: none; }
.sjc-product .sp-add.is-busy { opacity: 0.75; cursor: progress; }
.sjc-product .sp-make { margin-top: 10px; border: 1.5px solid var(--sr-indigo); background: transparent; color: var(--sr-indigo); }
.sjc-product .sp-make:hover,
.sjc-product .sp-make[aria-expanded="true"] { background: var(--sr-indigo); color: #fff; }
.sjc-product .sp-add:active,
.sjc-product .sp-make:active { transform: scale(0.985); }
.sjc-product .sp-add:focus-visible,
.sjc-product .sp-make:focus-visible,
.sjc-product .sp-ai:focus-visible,
.sjc-product .sp-send:focus-visible { outline: 2px solid var(--sr-indigo); outline-offset: 3px; }
.sjc-product svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Maker: pick a style (fabric page) or a fabric (look page), then the free AI preview */
.sjc-product .sp-maker {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--sr-line);
  border-radius: 18px;
  background: #fff;
}
.sjc-product .sp-maker[hidden] { display: none; }
.sjc-product .sp-maker-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font: 700 13.5px/1.4 var(--sr-sans); }
.sjc-product .sp-maker-head a { font-weight: 600; color: var(--sr-indigo); text-underline-offset: 3px; }
.sjc-product .sp-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  max-height: 236px;
  padding: 2px;
  overflow-y: auto;
}
.sjc-product .sp-pick {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--sr-calico) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sjc-product .sp-pick img { max-width: 100%; max-height: 100%; margin: 0; }
.sjc-product .sp-pick:hover { transform: translateY(-2px); }
.sjc-product .sp-pick[aria-checked="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sr-indigo); }
.sjc-product .sp-pick:focus-visible { outline: 2px solid var(--sr-indigo); outline-offset: 2px; }
.sjc-product .sp-picked { min-height: 20px; margin: 12px 0 0; font: 400 13.5px/1.4 var(--sr-sans); color: var(--sr-muted); }
.sjc-product .sp-picked b { color: var(--sr-ink); }
.sjc-product .sp-ai { flex-direction: column; gap: 2px; margin-top: 10px; border: 0; background: var(--sr-indigo); color: #fff; }
.sjc-product .sp-ai small { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.8; }
.sjc-product .sp-ai:hover { background: #2f3180; color: #fff; }
.sjc-product .sp-ai:disabled { opacity: 0.6; cursor: not-allowed; }
.sjc-product .sp-ai-note { margin: 8px 0 0; font: 400 12.5px/1.45 var(--sr-sans); color: var(--sr-muted); }
.sjc-product .sp-send { margin-top: 10px; border: 0; background: #1f8f4e; color: #fff; }
.sjc-product .sp-send:hover { background: #18773f; color: #fff; }
.sjc-product .sp-ai-note[hidden],
.sjc-product .sp-send[hidden] { display: none; }

/* Trust */
.sjc-product .sp-trust {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--sr-line);
  list-style: none;
  font: 600 13.5px/1.4 var(--sr-sans);
  color: var(--sr-muted);
}
.sjc-product .sp-trust li { display: flex; align-items: center; gap: 10px; margin: 0; }
.sjc-product .sp-trust svg { color: var(--sr-indigo); }
.sjc-product .sp-trust a { color: var(--sr-indigo); text-underline-offset: 3px; }

/* Details */
.sjc-product .sp-details { margin-top: 22px; border-top: 1px solid var(--sr-line); }
.sjc-product .sp-detail { border-bottom: 1px solid var(--sr-line); }
.sjc-product .sp-detail summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  font: 400 18px/1.3 var(--sr-serif);
  color: var(--sr-ink);
  cursor: pointer;
  list-style: none;
}
.sjc-product .sp-detail summary::-webkit-details-marker { display: none; }
.sjc-product .sp-detail summary::after { content: "+"; font: 400 22px/1 var(--sr-sans); color: var(--sr-indigo); transition: transform 0.2s ease; }
.sjc-product .sp-detail[open] summary::after { transform: rotate(45deg); }
.sjc-product .sp-detail-body { padding: 0 0 18px; font: 400 15px/1.65 var(--sr-sans); color: #4a4540; }
.sjc-product .sp-detail-body h2,
.sjc-product .sp-detail-body h3,
.sjc-product .sp-detail-body h4 { margin: 18px 0 8px; font: 700 15px/1.4 var(--sr-sans); color: var(--sr-ink); }
.sjc-product .sp-detail-body p { margin: 0 0 12px; }
.sjc-product .sp-detail-body ul { margin: 0 0 12px; padding-left: 20px; }
.sjc-product .sp-detail-body a { color: var(--sr-indigo); }
.sjc-product .sp-specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.sjc-product .sp-specs dt { font-weight: 700; color: var(--sr-ink); }
.sjc-product .sp-specs dd { margin: 0; }

/* ---------- More ---------- */

.sjc-product .sp-more { margin-top: clamp(40px, 6vw, 72px); }
.sjc-product .sp-more-title { margin: 0 0 18px; font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--sr-serif); color: var(--sr-ink); }
.sjc-product .sp-more-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 168px);
  gap: 14px;
  margin: 0;
  padding: 2px 2px 14px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
}
.sjc-product .sp-more-row li { margin: 0; scroll-snap-align: start; }
.sjc-product .sp-more-row a { display: grid; gap: 4px; color: var(--sr-ink); text-decoration: none; }
.sjc-product .sp-more-swatch,
.sjc-product .sp-more-figure {
  display: grid;
  place-items: end center;
  aspect-ratio: 3 / 4;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sr-calico) center / cover no-repeat;
  transition: transform 0.2s var(--sr-settle);
}
.sjc-product .sp-more-figure { padding: 8px 8px 0; box-sizing: border-box; }
.sjc-product .sp-more-figure img { max-width: 100%; max-height: 100%; margin: 0; }
.sjc-product .sp-more-row a:hover .sp-more-swatch,
.sjc-product .sp-more-row a:hover .sp-more-figure { transform: translateY(-3px); }
.sjc-product .sp-more-row b { font: 400 15px/1.3 var(--sr-serif); }
.sjc-product .sp-more-row span:last-child { font: 700 13px/1.3 var(--sr-sans); color: var(--sr-indigo); }

/* ---------- Sticky buy bar (phones) ---------- */

.sjc-product .sp-sticky { display: none; }

@media (max-width: 860px) {
  .sjc-product .sp-main { grid-template-columns: minmax(0, 1fr); }
  .sjc-product .sp-stage { position: static; }
  .sjc-product .sp-view-box { aspect-ratio: 1 / 1.08; border-radius: 18px; }
  .sjc-product .sp-hang { --w: min(46vw, 216px); margin-top: 6%; }
  .sjc-product .sp-view--draped::before { top: calc(6% + var(--w, 216px) * 0.0575 - 5px); }
  .sjc-product .sp-name { font-size: 30px; }

  .sjc-product .sp-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 -8px 24px rgba(40, 30, 20, 0.12);
    transform: translateY(110%);
    transition: transform 0.3s var(--sr-glide);
  }
  .sjc-product .sp-sticky.is-shown { transform: none; }
  .sjc-product .sp-sticky-name { display: grid; flex: 1 1 auto; min-width: 0; font: 400 14px/1.3 var(--sr-serif); }
  .sjc-product .sp-sticky-name b { font: 700 14px/1.3 var(--sr-sans); color: var(--sr-indigo); }
  .sjc-product .sp-sticky-add {
    flex: 0 0 auto;
    min-height: 48px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--sr-red);
    color: #fff;
    font: 700 14px/1 var(--sr-sans);
    text-transform: none;
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sjc-product .sp-hang .sr-fig { animation: none; }
  .sjc-product .sp-view,
  .sjc-product .sp-sticky { transition-duration: 0.01ms; }
}
