/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 20px 15px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  color: #333;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 1);
}

.modal-body {
  display: flex;
  flex-wrap: wrap;
}

.modal-image-section {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);

  a {
    font-size: 15px;
    text-decoration: underline;
  }
}

.modal-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.modal-info-section {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #f5f5f5;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.brand-image {
  max-width: 120px;
  max-height: 40px;
  margin-bottom: 15px;
}

.product-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.product-variant {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.product-sku {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.product-description {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-price {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

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

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

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal-content.show {
  animation: slideUp 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }

  .modal-image-section,
  .modal-info-section {
    min-width: 100%;
  }
}
