.note { color: var(--muted); }
.content-prose { max-width: 48rem; }
.product-back {
  text-decoration: none;
}
.product-back:hover { text-decoration: none; }
.gallery {
  display: grid;
  gap: 0.75rem;
}
.gallery img { background: transparent; }
.gallery-main {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid #cfd8d3;
  overflow: hidden;
  border-radius: 1rem;
  background: #e8eeeb;
}
.gallery-main__img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #e8eeeb;
}
.gallery-main__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-main__hit:focus-visible {
  outline: 3px solid rgba(15, 106, 76, 0.45);
  outline-offset: -3px;
}
.gallery-main__status,
.gallery-main__badges {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 3;
  pointer-events: none;
}
.gallery-main__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: calc(100% - 1.7rem);
}
.gallery-main__hint {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 20, 17, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  pointer-events: none;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.thumbs .btn {
  border: 2px solid transparent;
  border-radius: 0.65rem;
  overflow: hidden;
}
.thumbs .btn.is-active {
  border-color: var(--green, #0f6a4c);
}
.thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.45rem;
  display: block;
}
.gallery-modal {
  background: #0b1411;
  color: #fff;
  border: 0;
  min-height: min(100dvh, 720px);
}
.gallery-modal__body {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1.25rem;
  min-height: 60vh;
}
.gallery-modal__stage {
  display: grid;
  place-items: center;
  min-height: 50vh;
  touch-action: pan-y;
}
.gallery-modal__stage img {
  max-width: 100%;
  max-height: min(72vh, 780px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  background: transparent;
}
.gallery-nav {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.gallery-nav:hover { background: rgba(255, 255, 255, 0.16); }
.gallery-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.gallery-dot.is-active { background: #1f8f68; transform: scale(1.25); }
@media (max-width: 991.98px) {
  .buy-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    border-radius: 1rem 1rem 0 0;
    padding: 0.85rem;
    margin: 0.75rem -0.25rem 0;
    backdrop-filter: blur(8px);
  }
  .gallery-modal__body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 0.75rem;
  }
  .gallery-modal__stage { order: -1; min-height: 55vh; }
  .gallery-nav {
    position: absolute;
    top: 45%;
    z-index: 2;
  }
  .gallery-nav--prev { left: 0.5rem; }
  .gallery-nav--next { right: 0.5rem; }
}
@media (max-width: 575.98px) {
  .thumbs img { width: 64px; height: 64px; }
  .content-prose { font-size: 0.98rem; }
  .gallery-main__hint { font-size: 0.75rem; }
}
