/* Page coordinates (CSS px): the photograph fills the frame. The saddle's card sits on the empty wall above it,
   22..262 x 52..229, its shadow ending at x 270 so it stays clear of the handlebar grips (from x 275), and throws
   the same hard shadow as the bicycle. */
.bk {
  --paper: #ffffff;
  --ink: #101010;
  --shade: #98203a; /* the wall in the bicycle's shadow, sampled from the photograph */
  position: relative;
  width: 540px;
  height: 540px;
  overflow: hidden;
  background: #ef4571;
  color: var(--ink);
  font-family: "Host Grotesk Variable", sans-serif;
}

.bk * {
  box-sizing: border-box;
}

.bk-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 540px;
  height: 540px;
}

/* Hotspot: a 22 px disc centred on the part, with a ring that breathes while it waits. */
.bk-spot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: background-color 160ms, color 160ms, scale 160ms;
}

.bk-spot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  opacity: 0.55;
  animation: bk-wait 1.8s ease-in-out infinite;
}

.bk-spot[data-part="bell"]::before { animation-delay: -0.45s; }
.bk-spot[data-part="basket"]::before { animation-delay: -0.9s; }
.bk-spot[data-part="lamp"]::before { animation-delay: -1.35s; }

@keyframes bk-wait {
  0%, 100% { scale: 0.86; opacity: 0.7; }
  50% { scale: 1.12; opacity: 0.25; }
}

.bk-spot svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  transition: rotate 260ms cubic-bezier(0.3, 0.7, 0.2, 1);
}

.bk-spot:hover { scale: 1.14; }

.bk-spot:active { scale: 0.9; }

.bk-spot:focus-visible { box-shadow: 0 0 0 3px var(--ink); }

.bk-spot[data-open] {
  background: var(--ink);
  color: var(--paper);
  scale: 1;
}

.bk-spot[data-open]::before {
  animation: none;
  opacity: 0;
}

.bk-spot[data-open] svg { rotate: 45deg; }

/* Card: 240 wide, sharp, 20 px inside. It grows from the tip of its arrow, which rests on the hotspot's top edge.
   The card may grow past 240 when a name needs the room ("Headlamp"), and the popover's collision padding keeps
   it 16 px inside the stage. */
.bk-card {
  width: max-content;
  min-width: 240px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 13px 20px 20px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  filter: drop-shadow(8px 6px 0 var(--shade));
  transform-origin: var(--arrow-offset) calc(100% + 13px);
  transition:
    opacity 70ms linear,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bk-card[data-starting-style],
.bk-card[data-ending-style] {
  opacity: 0;
  transform: scale(0.8);
  filter: drop-shadow(3px 2px 0 var(--shade));
}

.bk-arrow {
  width: 26px;
  height: 14px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.bk-arrow[data-side="top"] { top: calc(100% - 1px); }


.bk-name {
  margin: 0;
  font-size: 58px;
  font-weight: 800;
  line-height: 58px;
  letter-spacing: -0.045em;
  margin-left: -3px;
}

.bk-spec {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.bk-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.bk-price {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.bk-add {
  height: 44px;
  padding: 0 24px 1px;
  border: 0;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  outline: none;
  transition: scale 160ms;
}

.bk-add:hover { scale: 1.05; }

.bk-add:active { scale: 0.96; }

.bk-add:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
