/* ============================================
   Product Modal Styles
   16:9 widescreen modal (max 1600px, 95% width)
   复用 admin-product-form.css 内的字段样式
   ============================================ */

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: flex-start;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  overflow-y: auto;
}
.product-modal-backdrop:not([hidden]) {
  display: flex;
}
.product-modal {
  background: var(--white);
  border-radius: 16px;
  width: 95%;
  max-width: 1600px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-light);
  z-index: 1;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}
.product-modal-close:hover {
  background: rgba(0,0,0,0.1);
  color: var(--text);
}
/* Modal 内去掉 form-card 圆角（modal 已经有圆角） */
.product-modal .form-card { background: transparent; border: none; box-shadow: none; padding: 0; }