:root {
  --fondo: #ffffff;
  --inchiostro: #18181b;
  --secondario: #75757c;
  --linea: #e7e5e1;
  --sage: #8c9f86;
  --clay: #c7805f;
  --ink: #2f3b4c;
  --sand: #d8c6a3;
  --ember: #cf4a30;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(8px, 3vh, 28px) 16px;
  overflow: hidden;
}

.prodotto {
  /* sized on the height as well: photo, two lines and the swatches always fit the box */
  --alta: min(54vh, 400px);
  width: min(calc(var(--alta) * .8333), 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.2vh, 16px);
}

.foto {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 360;
  border-radius: 14px;
  overflow: hidden;
  background: #f1eee9;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, .04);
}
.foto svg { display: block; width: 100%; height: 100%; }

.marchio-inciso {
  font: 650 9px "Mona Sans Variable", system-ui, sans-serif;
  font-stretch: 112%;
  letter-spacing: 3.2px;
  fill: #fff;
  fill-opacity: .6;
}

.info { display: grid; gap: 3px; }
.riga { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nome {
  margin: 0;
  font-size: clamp(14px, 2.4vh, 17px);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: -.01em;
}
.prezzo, .colore {
  display: inline-block;
  overflow: hidden;
  padding: 2px 0;
  margin: -2px 0;
  vertical-align: bottom;
}
.prezzo { font-size: clamp(14px, 2.4vh, 17px); font-weight: 560; }
.prezzo > span, .colore > span { display: inline-block; will-change: transform; }
.riga--sotto { font-size: clamp(11.5px, 1.9vh, 13px); color: var(--secondario); }
.colore { color: var(--inchiostro); font-weight: 520; }
.dettaglio { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.campioni {
  position: relative;
  display: flex;
  gap: clamp(10px, 2vh, 14px);
  padding: 4px 4px 2px;
}

.campione {
  position: relative;
  width: clamp(22px, 4.4vh, 28px);
  height: clamp(22px, 4.4vh, 28px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 -3px 5px rgba(0, 0, 0, .12), inset 0 2px 3px rgba(255, 255, 255, .28);
  -webkit-tap-highlight-color: transparent;
}
.campione::after {
  /* a soft highlight like the bottle's own */
  content: "";
  position: absolute;
  left: 22%;
  top: 16%;
  width: 30%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .34);
  filter: blur(1px);
}
.campione:focus-visible { outline: 2px solid var(--inchiostro); outline-offset: 5px; }

.anello {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(22px, 4.4vh, 28px);
  height: clamp(22px, 4.4vh, 28px);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--fondo), 0 0 0 3px var(--inchiostro);
  pointer-events: none;
  opacity: 0;
}
