:root {
  --design-width: 1564;
  --design-height: 14162;
  --hero-top: 150;
  --collection-top: 6790;
  --jewelry-top: 10230;
  --brand-green: #073f34;
  --focus-color: #f2c66d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f4f2ee;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #f4f2ee;
  color: var(--brand-green);
  -webkit-tap-highlight-color: transparent;
}

button,
img {
  -webkit-user-select: none;
  user-select: none;
}

.preview-canvas {
  position: relative;
  width: min(100vw, 480px);
  aspect-ratio: 1564 / 14162;
  margin: 0 auto;
  overflow: hidden;
  background: var(--brand-green);
  isolation: isolate;
}

.base-design,
.layer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.base-design {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.interactive-layer {
  position: absolute;
  z-index: 1;
  touch-action: pan-y;
}

.hero-layer {
  left: 2.365729%;
  top: 1.059172%;
  width: 95.332481%;
  height: 16.459539%;
  overflow: hidden;
  border-radius: 4.5% / 2.8%;
  background: var(--brand-green);
}

.collection-layer {
  left: 0;
  top: 47.945206%;
  width: 100%;
  height: 20.364355%;
}

.jewelry-layer {
  left: 0;
  top: 72.235560%;
  width: 100%;
  height: 20.364355%;
}

.layer-image {
  opacity: 0;
  transition: opacity 180ms ease;
}

.interactive-layer.is-visible > .layer-image {
  opacity: 1;
}

.interactive-layer.is-loading > .layer-image,
.interactive-layer.has-error > .layer-image {
  opacity: 0;
}

.hero-dots,
.category-tabs {
  position: absolute;
  z-index: 2;
  display: flex;
  margin: 0;
}

.hero-dots {
  left: 27%;
  bottom: 1.2%;
  width: 46%;
  height: max(44px, 5.8%);
}

.category-tabs {
  left: 2.2%;
  top: 1.1%;
  width: 95.6%;
  height: max(44px, 7.2%);
}

.hotspot {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0;
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.hotspot:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: -4px;
  background: rgb(242 198 109 / 14%);
}

@media (prefers-reduced-motion: reduce) {
  .layer-image {
    transition: none;
  }
}
