/* ─── Fullscreen Overlay ─── */
.fullscreenOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 2000;
  overflow: hidden;
  contain: layout style paint;
}

.fullscreenOverlay.active {
  display: flex;
}

/* Desktop zoom cursor states - only on image hover */
@media (min-width: 961px) {
  #fullscreenImg {
    cursor: zoom-in;
  }

  .fullscreenOverlay.is-zoomed-1 #fullscreenImg {
    cursor: zoom-in;
  }

  .fullscreenOverlay.is-zoomed-2 #fullscreenImg {
    cursor: zoom-out;
  }
}

#fullscreenImg {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#fullscreenImg:hover {
  opacity: 0.95;
}

.fullscreenClose {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  z-index: 2001;
  transition: transform 0.2s;
}

.fullscreenClose:hover {
  transform: scale(1.1);
}

/* Fullscreen navigation arrows - hidden on all devices (use keyboard instead) */
.fullscreenArrow {
  display: none;
}

/* ─── Frame selector styles ─── */
.frame-selector {
  width: 100%;
}

.frame-label {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 500;
}

.frame-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 5px;
}

.frame-radio-label {
  display: flex;
  align-items: flex-start;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  background: var(--bg-warm);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  gap: 12px;
}

.frame-radio-label:hover {
  border-color: var(--accent-green);
  background: rgba(120, 180, 120, 0.08);
}

.frame-radio-label input[type="radio"] {
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent-green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.frame-radio-label input[type="radio"]:checked ~ .radio-label-text {
  color: var(--text-dark);
  font-weight: 600;
}

.frame-radio-label input[type="radio"]:checked {
  border-color: var(--accent-green);
}

.frame-radio-label:has(input[type="radio"]:checked) {
  border-color: var(--accent-green);
  background: rgba(120, 180, 120, 0.15);
  font-weight: 600;
}

.radio-label-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-label-text .option-title {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
}

.radio-label-text .option-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-green);
}

/* Mobile adjustments for frame selector modal */
@media (max-width: 960px) {
  .frame-selector {
    display: none;
  }
}
