:root {
  --pagina: #ffffff;          /* the page around the card */
  --carta: #ffffff;           /* the card */
  --inchiostro: #1d211e;      /* the type */
  --grigio: #7b807b;          /* small labels */
  --filo: rgba(29, 33, 30, .1); /* hairlines */
  --verde: #2f4a3a;           /* the one accent: nursery green */
  --verde-chiaro: #e9efe9;    /* the green, very light */
  --terracotta: #c4683d;      /* the terracotta swatch */
  --bianco: #f1eee8;          /* the matte white swatch */
  --cemento: #a7a59f;         /* the concrete swatch */
  --sole: #e0a33c;            /* the warm sun, only on hover */
  --acqua: #5f8fae;           /* the water, only on hover */
  --sans: "Geist Variable", "Geist", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--pagina);
  color: var(--inchiostro);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.stage {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vmin, 32px);
}

/* ---- the card: photo on the left, everything else on the right ---- */
.card {
  position: relative;
  width: min(680px, 94vw);
  display: grid;
  grid-template-columns: 46% 1fr;
  grid-template-areas: "photo head" "photo pot" "photo care" "photo add";
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(16px, 3vw, 28px);
  padding: clamp(10px, 1.6vw, 14px);
  padding-right: clamp(14px, 2.6vw, 24px);
  background: var(--carta);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(29, 33, 30, .06),
    0 1px 2px rgba(29, 33, 30, .05),
    0 12px 28px -10px rgba(29, 33, 30, .14),
    0 40px 70px -40px rgba(47, 74, 58, .28);
  will-change: transform;
}

/* the photo keeps the exact proportions of the picture, so the pot mask lines up */
.photo {
  grid-area: photo;
  position: relative;
  align-self: stretch;
  width: 100%;
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: #ecebe8;
}
.photo__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.photo__img { will-change: transform; }

/* each pot finish is the same photo, masked to the pot only, with a filter: the glaze rises into the photo */
.glaze {
  position: absolute; inset: 0;
  -webkit-mask-image: url("vaso.png");
  mask-image: url("vaso.png");
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: 50% 60%;
  mask-position: 50% 60%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  clip-path: inset(100% 0 0 0);
}
.glaze[data-glaze="white"] .glaze__img { filter: grayscale(1) brightness(1.72) contrast(.74) sepia(.08); }
.glaze[data-glaze="concrete"] .glaze__img { filter: grayscale(1) brightness(1.06) contrast(.86) sepia(.06); }

.shown {
  position: absolute; z-index: 50; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: .4em;
  padding: 6px 10px 6px 9px;
  font-size: 11px; letter-spacing: .01em;
  color: var(--inchiostro);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 4px 12px -6px rgba(0, 0, 0, .25);
}
.shown__label { color: var(--grigio); }

/* a word that rolls: a window one line tall over a column of words */
.roll { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; vertical-align: bottom; }
.roll__track { display: flex; flex-direction: column; will-change: transform; }
.roll__track > span { display: block; height: 1.25em; white-space: nowrap; }

/* ---- the head ---- */
.head { grid-area: head; padding-top: clamp(8px, 1.6vw, 16px); min-width: 0; }
.head__top { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); }
.bag { position: relative; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--inchiostro); }
.bag__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.name {
  margin-top: clamp(4px, 1vw, 8px);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 36px); line-height: 1; letter-spacing: -.01em;
}
.latin { margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: clamp(13px, 1.5vw, 15px); color: var(--grigio); }
.price { margin-top: clamp(8px, 1.4vw, 12px); display: flex; align-items: baseline; gap: 1px; font-size: clamp(18px, 2.2vw, 21px); font-weight: 500; letter-spacing: -.01em; }
.price__digits { display: inline-flex; }
.price__digit { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: bottom; }
.price__strip { display: flex; flex-direction: column; will-change: transform; }
.price__strip > span { display: block; height: 1.2em; text-align: center; }
.price__note { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--grigio); letter-spacing: 0; }

/* ---- the pot ---- */
.pot { grid-area: pot; margin-top: clamp(10px, 2vw, 18px); }
.pot__row { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.pot__label { color: var(--grigio); }
.pot__name { font-weight: 500; }
.swatches { position: relative; display: flex; gap: 10px; margin-top: 8px; }
.swatch {
  position: relative; z-index: 1;
  width: 40px; height: 32px; border-radius: 11px;
  display: grid; place-items: center;
}
.swatch__chip {
  width: 32px; height: 24px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 -6px 10px -6px rgba(0, 0, 0, .22), inset 0 4px 6px -4px rgba(255, 255, 255, .7);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4);
}
.swatch--terracotta .swatch__chip { background: radial-gradient(120% 90% at 30% 20%, #dc8457, var(--terracotta) 55%, #9e4f2c); }
.swatch--white .swatch__chip { background: radial-gradient(120% 90% at 30% 20%, #ffffff, var(--bianco) 55%, #d8d3ca); }
.swatch--concrete .swatch__chip {
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, .14) 0 .6px, transparent 1.2px) 0 0 / 5px 6px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .35) 0 .6px, transparent 1.2px) 0 0 / 7px 5px,
    radial-gradient(120% 90% at 30% 20%, #c2c0bb, var(--cemento) 55%, #8a8882);
}
.swatches__ring {
  position: absolute; left: 0; top: 0; width: 40px; height: 32px;
  border-radius: 11px;
  box-shadow: 0 0 0 1.5px var(--verde);
  pointer-events: none;
}
.swatch:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
@media (hover: hover) {
  .swatch:hover .swatch__chip { transform: translateY(-1px) scale(1.04); }
}
.swatch:active .swatch__chip { transform: translateY(1px) scale(.96); }

/* ---- the care lines ---- */
.care {
  grid-area: care;
  list-style: none;
  margin-top: clamp(10px, 2vw, 18px);
  display: grid; gap: 0;
  align-self: start;
}
.care__item {
  display: flex; align-items: center; gap: 10px;
  padding: clamp(5px, 1vw, 8px) 0;
  border-top: 1px solid var(--filo);
  font-size: 12.5px;
}
.care__item:last-child { border-bottom: 1px solid var(--filo); }
.care__icon { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--inchiostro); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.care__text { display: flex; justify-content: space-between; flex: 1; gap: 10px; min-width: 0; }
.care__label { color: var(--grigio); }
.care__value { font-weight: 500; text-align: right; white-space: nowrap; }
.sun__core { fill: transparent; }
.ripple { stroke-width: 1; opacity: 0; }

/* ---- add to cart ---- */
.add {
  grid-area: add;
  position: relative; overflow: hidden;
  margin-top: clamp(10px, 2vw, 16px);
  margin-bottom: clamp(4px, 1vw, 10px);
  height: 48px; width: 100%;
  border-radius: 999px;
  background: var(--verde);
  color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 -1px 0 rgba(0, 0, 0, .25) inset, 0 8px 18px -10px rgba(47, 74, 58, .8);
  transition: box-shadow .3s;
}
.add:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
.add__label { position: relative; z-index: 1; }
.add__label .roll__track > span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tick { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.add__shine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, .32) 50%, transparent 60%);
  pointer-events: none;
}

/* ---- phone: the photo shrinks beside the name, the rest goes below ---- */
@media (max-width: 560px) {
  .card {
    width: min(420px, 96vw);
    grid-template-columns: 38% 1fr;
    grid-template-areas: "photo head" "pot pot" "care care" "add add";
    grid-template-rows: auto auto auto auto;
    column-gap: 12px;
    padding: 10px;
    border-radius: 20px;
  }
  .photo { align-self: start; min-height: 0; aspect-ratio: 1 / 1.05; border-radius: 12px; }
  .head { padding-top: 4px; }
  .name { font-size: clamp(22px, 6.4vw, 28px); }
  .price { margin-top: 6px; font-size: 17px; }
  .price__note { font-size: 11px; }
  .shown { left: 6px; bottom: 6px; padding: 4px 7px; font-size: 9.5px; }
  .shown__label { display: none; }
  .pot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .swatches { margin-top: 0; }
  .care { margin-top: 8px; grid-template-columns: repeat(3, 1fr); column-gap: 8px; }
  .care__item, .care__item:last-child { flex-direction: column; align-items: flex-start; gap: 4px; padding: 7px 0; border-bottom: 1px solid var(--filo); font-size: 11.5px; }
  .care__text { flex-direction: column; gap: 1px; }
  .care__value { text-align: left; }
  .add { height: 44px; margin-top: 10px; margin-bottom: 0; }
}

@media (max-height: 460px) and (min-width: 561px) {
  .card { width: min(620px, 94vw); }
  .care__item { padding: 4px 0; }
  .add { height: 42px; }
}
