/* The product lens: a watch on a white page, a round glass over it. */
:root {
  --page: #ffffff;          /* the page */
  --ink: #1c1b19;
  --muted: #86837c;
  --line: #ebe8e2;
  --case: #c9ccd1;          /* the case, changed by the swatches */
  --case-deep: #8f949c;
}

* {
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font-family: 'Public Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.product {
  width: min(420px, 100%);
}

/* ---------------------------------------------------------------- the picture */
.shot {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 40%, #fbfaf7, #efece5);
  overflow: hidden;
  cursor: none;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

@media (hover: none), (pointer: coarse) {
  .shot {
    cursor: auto;
  }
}

.shot:focus-visible {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--ink);
}

html[data-using='pointer'] .shot:focus-visible {
  box-shadow: none;
}

.shot__art {
  position: absolute;
  inset: 0;
}

.shot__art svg,
.lens__view svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* the glass */
.lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: #f7f5f0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(28, 27, 25, 0.12), 0 18px 30px -12px rgba(28, 27, 25, 0.45), inset 0 0 18px rgba(28, 27, 25, 0.18);
  opacity: 0;
  pointer-events: none;
}

.lens__view {
  position: absolute;
  top: 0;
  left: 0;
}

/* a reflection on the glass */
.lens::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.lens__zoom {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(28, 27, 25, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  transform: translateX(-50%);
}

/* ---------------------------------------------------------------- the words */
.product__info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.product__title {
  margin: 0;
  font-family: 'Bodoni Moda Variable', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product__meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product__price {
  margin: 4px 0 0;
  font-family: 'Bodoni Moda Variable', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}

.swatches {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font: 600 13.5px 'Public Sans Variable', system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.swatch i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--tone);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.swatch[aria-checked='true'] {
  border-color: var(--ink);
}

.swatch:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

html[data-using='pointer'] .swatch:focus-visible {
  outline: none;
}

.product__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* the hint speaks of the pointer and the wheel, or of the finger on a touch screen */
.hint--touch {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .hint--pointer {
    display: none;
  }

  .hint--touch {
    display: inline;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
