:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #1c1a17;
  --soft: rgba(28, 26, 23, 0.58);
  --faint: rgba(28, 26, 23, 0.36);
  --line: rgba(28, 26, 23, 0.09);
  --accent: #b5622a;
  --tile: #f3ece2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.sr { position: relative; width: min(312px, 100%); padding: 10px 10px 12px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 34px 54px -36px rgba(28, 26, 23, 0.5), 0 10px 18px -14px rgba(28, 26, 23, 0.22); }

/* the photo has a white ground: multiplied on the warm tile, only the bottle stays; the blend sits on the moving wrapper, because a transformed wrapper would otherwise isolate the image */
.sr__shot { position: relative; height: min(150px, 34vh); border-radius: 18px; background: radial-gradient(70% 90% at 50% 100%, #fbf7f1, var(--tile)); overflow: hidden; }
.sr__bottle { position: absolute; left: 50%; bottom: -5%; height: 112%; aspect-ratio: 1; margin-left: calc(min(150px, 34vh) * -0.56); transform-origin: 50% 88%; mix-blend-mode: multiply; }
.sr__bottle img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr__grain { position: absolute; inset: 0; background-image: radial-gradient(rgba(28, 26, 23, 0.06) 0.600px, transparent 0.700px); background-size: 3px 3px; opacity: 0.5; pointer-events: none; }
.sr__chip, .sr__best { position: absolute; top: 9px; height: 22px; padding: 0 9px; border-radius: 8px; font-style: normal; font-size: 10.500px; line-height: 22px; font-weight: 660; white-space: nowrap; }
.sr__chip { left: 9px; background: rgba(255, 255, 255, 0.8); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.sr__best { right: 9px; background: var(--accent); color: #ffffff; opacity: 0; }

.sr__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 11px; padding: 0 4px; }
.sr__name { min-width: 0; display: grid; }
.sr__name b { font-size: 15px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; white-space: nowrap; }
.sr__name span { font-size: 11.500px; line-height: 15px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.sr__price { flex: none; display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.sr__price b { font-size: 20px; line-height: 20px; font-weight: 760; letter-spacing: -0.02em; }
.sr__perroll { height: 15px; overflow: hidden; font-size: 11px; line-height: 15px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.sr__perroll span { display: block; }

.sr__sizes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 38px; margin-top: 10px; padding: 3px; border-radius: 13px; background: #f4f2ee; box-shadow: inset 0 0 0 1px var(--line); }
.sr__pick { position: absolute; left: 3px; top: 3px; width: calc((100% - 6px) / 3); height: 32px; border-radius: 10px; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 4px 8px -5px rgba(28, 26, 23, 0.45); }
.sr__size { position: relative; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--soft); font: inherit; font-size: 12.500px; font-weight: 660; font-variant-numeric: tabular-nums; cursor: pointer; outline: none; transition: color 0.25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sr__size[aria-checked="true"] { color: var(--ink); }
.sr__size:focus-visible, .sr__go:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
@media (hover: hover) { .sr__size:hover { color: var(--ink); } }

.sr__go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 15px; background: var(--ink); color: #ffffff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 22px -14px rgba(28, 26, 23, 0.7); transition: background-color 0.35s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sr__go svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sr__go .bag { transform-box: fill-box; transform-origin: 50% 60%; transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.2s ease; }
.sr__go .ck { stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.35s ease 0.1s, opacity 0.1s ease; }
.sr.is-added .sr__go { background: var(--accent); }
.sr.is-added .sr__go .bag { transform: scale(0.5); opacity: 0; }
.sr.is-added .sr__go .ck { stroke-dashoffset: 0; opacity: 1; }
.sr__gotext { height: 20px; line-height: 20px; overflow: hidden; }
.sr__gotext span { display: block; white-space: nowrap; }
@media (hover: hover) { .sr:not(.is-added) .sr__go:hover { background: #33302b; } }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #1c1a17; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(28, 26, 23, 0.3)); z-index: 5; }
