/* ==========================================================================
   FRAME MODAL - BASE STYLES
   ========================================================================== */

/* Modal Overlay */
.frame-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  /* display: none; */
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.frame-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* Modal Container */
.frame-modal__container {
  background: #000;
  border-radius: 10px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
  display: flex;
  max-width: 1190px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

/* Desktop Layout (side by side) */
@media (max-width: 1025px) {
  .frame-modal__container {
    flex-direction: column;
    max-height: 100vh;
    overflow: scroll;
  }

  /* Desktop: Preview on right side */
  .product-preview {
    display: contents; /* Separate image and info */
  }
}

/* Typography Base */
.frame-modal {
  font-family: 'Barlow Semi Condensed', sans-serif;
  color: #eaf1ff;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .frame-modal {
    padding: 0;
  }

  .frame-modal__container {
    flex-direction: column;
    max-height: 100vh;
    overflow: auto;
  }

  /* Mobile Order: image -> selector -> info */
  .product-preview__image {
    order: 1;
  }

  .frame-selector {
    order: 2;
  }

  .product-preview__info {
    order: 3;
  }
}

@media (max-width: 768px) {
  .frame-modal__container {
    max-height: 100vh;
  }
}
