/* foto-zoom.css — vergrootknop op productfoto's + de overlay.
   Hoort bij js/foto-zoom.js en wordt door alle drie de configurators geladen.
   Apart bestand: css/styles.css is gedeeld en wordt door meerdere sessies
   tegelijk aangeraakt. */

/* ── De knop in de rechterbovenhoek van de foto ───────────────────────── */
/* .product-img staat al op position:relative (css/styles.css); de kit-hero
   krijgt dat hier. */
.kd-hero-img-wrap { position: relative; }

.foto-zoom-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.62);
  color: #fff;
  cursor: zoom-in;
  opacity: 0.75;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.foto-zoom-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.foto-zoom-btn:hover,
.foto-zoom-btn:focus-visible {
  opacity: 1;
  background: var(--red, #E63329);
  border-color: var(--red, #E63329);
}
/* Rechtsboven staat soms al iets: het vinkje van een gekozen kaart, of het
   slotje 'Vereist wijziging' op een kaart die niet bij de rest past. */
.product-card.selected .foto-zoom-btn,
.product-card.soft-locked .foto-zoom-btn { right: 42px; }

/* Op een telefoon is de fotobox een stuk lager; dan ook de knop kleiner. */
@media (max-width: 640px) {
  .foto-zoom-btn { width: 24px; height: 24px; top: 4px; right: 4px; opacity: 0.85; }
  .foto-zoom-btn svg { width: 13px; height: 13px; }
  .product-card.selected .foto-zoom-btn { right: 36px; }
}

/* ── De overlay ───────────────────────────────────────────────────────── */
.foto-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(8, 8, 8, 0.92);
}
.foto-zoom-overlay.is-open { display: flex; }
body.foto-zoom-open { overflow: hidden; }

.foto-zoom-vak {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.foto-zoom-vak img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.foto-zoom-vak figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  color: #ddd;
  font-size: 13px;
  text-align: center;
}
.foto-zoom-teller { color: #9a9a9a; font-family: monospace; font-size: 12px; }

.foto-zoom-sluit,
.foto-zoom-pijl {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 30, 0.8);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease;
}
.foto-zoom-sluit:hover,
.foto-zoom-pijl:hover,
.foto-zoom-sluit:focus-visible,
.foto-zoom-pijl:focus-visible {
  background: var(--red, #E63329);
  border-color: var(--red, #E63329);
}
.foto-zoom-sluit {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 26px;
}
.foto-zoom-pijl {
  width: 44px;
  height: 64px;
  font-size: 30px;
  flex-shrink: 0;
}
.foto-zoom-pijl[hidden] { display: none; }

@media (max-width: 640px) {
  .foto-zoom-overlay { padding: 12px; gap: 4px; }
  .foto-zoom-pijl { width: 34px; height: 54px; font-size: 24px; }
  .foto-zoom-sluit { top: 8px; right: 8px; width: 34px; height: 34px; font-size: 22px; }
  .foto-zoom-vak img { max-height: 66vh; }
}
