/* App-specific tweaks on top of Bootstrap. */

.product-card img,
.product-photo-placeholder {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.product-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  font-size: 2rem;
}

/* Make Tom Select match Bootstrap form-control height. */
.ts-wrapper { margin-bottom: 0; }

/* Photo lightbox: tap the Edit-form preview to view the image full-screen. */
.lightbox-trigger { cursor: zoom-in; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;            /* above Bootstrap modal layers (~1050) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;            /* breathing room from screen edges on mobile */
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;      /* scale to fit any viewport, preserve aspect ratio */
}
