.detail-image {
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

.detail-image img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: contain;
  transition: transform .35s ease;
}

.product-zoom {
  cursor: zoom-in;
}

.product-zoom:hover img {
  transform: scale(1.018);
}

.product-zoom:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.image-note {
  padding: 7px 10px;
  border-radius: 7px;
  background: #ffffffe8;
  color: #343a3b;
  font-weight: 600;
  box-shadow: 0 6px 18px #17202a18;
}

.zoom-badge {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 20px #17202a28;
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 18px;
  background: #09131bea;
  backdrop-filter: blur(12px);
  color: #fff;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
  font: 600 11px 'DM Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lightbox-toolbar > div {
  display: flex;
  gap: 7px;
}

.lightbox-toolbar button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ffffff52;
  border-radius: 9px;
  background: #ffffff14;
  color: #fff;
  font: 700 15px Manrope, Arial, sans-serif;
  cursor: pointer;
}

.lightbox-toolbar button:hover,
.lightbox-toolbar button:focus-visible {
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.lightbox-toolbar .lightbox-close {
  font-size: 27px;
}

.lightbox-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff0b;
}

.lightbox-stage img {
  width: min(86vw, 1400px);
  height: min(80vh, 1100px);
  object-fit: contain;
  transform-origin: center;
  transition: transform .18s ease;
  user-select: none;
}

.lightbox-help {
  margin: 0 auto 2px;
  color: #d6dfdf;
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: .06em;
  text-align: center;
}

@media (max-width: 760px) {
  .detail-image,
  .detail-image img {
    min-height: 360px;
  }

  .image-lightbox {
    padding: 10px;
  }

  .lightbox-toolbar > span {
    display: none;
  }

  .lightbox-toolbar {
    justify-content: flex-end;
  }

  .lightbox-stage img {
    width: 94vw;
    height: 76vh;
  }

  .lightbox-help {
    font-size: 9px;
  }
}
