/* Styles for product variant modal and admin variant UI */
body.pvm-open { overflow: hidden; }
.pvm-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; display: none; padding: 20px; overflow-y: auto; }
.pvm-dialog { max-width: 520px; margin: 30px auto; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); overflow: hidden; font-size: 14px; }
.pvm-header { background: #ffd33b; padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pvm-title { font-size: 18px; font-weight: 800; }
.pvm-subtitle { font-size: 12px; color: #333; }
.pvm-price-line { font-size: 16px; font-weight: 800; margin-top: 4px; }
.pvm-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; }
.pvm-body { padding: 16px 18px 8px 18px; max-height: 55vh; overflow-y: auto; }
.pvm-variant-group { margin-bottom: 14px; }
.pvm-variant-name { font-weight: 800; margin-bottom: 6px; }
.pvm-variant-options { display: flex; flex-direction: column; gap: 8px; }
.pvm-option { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pvm-option input { width: 16px; height: 16px; }
.pvm-option-price { color: #666; font-size: 12px; margin-left: auto; white-space: nowrap; }
.pvm-empty { margin: 0; font-size: 13px; color: #555; }
.pvm-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 12px; border-top: 1px solid #f0f0f0; }
.pvm-qty { display: inline-flex; align-items: center; gap: 10px; }
.pvm-qty-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ffd33b; background: #fff; font-weight: 800; cursor: pointer; }
.pvm-qty-value { min-width: 24px; text-align: center; font-weight: 800; }
.pvm-add { flex: 1; background: #ffd33b; border: 0; border-radius: 18px; padding: 12px 16px; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.pvm-add-price { font-weight: 900; }
@media (max-width: 600px){
  .pvm-dialog { margin: 10px auto; }
  .pvm-header, .pvm-body, .pvm-footer { padding: 12px 14px; }
}

/* Admin variants UI */
.variants-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.variants-list { border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.variants-list-header, .variants-list-row { display: grid; grid-template-columns: 1.1fr 1fr 140px; align-items: center; padding: 10px 12px; }
.variants-list-header { background: #fafafa; font-weight: 700; font-size: 12px; }
.variants-list-row:nth-child(even) { background: #fcfcfc; }
.variants-empty { padding: 14px; font-size: 13px; }
.variants-cell { font-size: 13px; }
.variants-actions { display: flex; gap: 8px; justify-content: flex-end; }
.variants-form { border: 1px solid #eee; border-radius: 10px; padding: 15px; background: #fff; }
.variants-form .form-row { margin-bottom: 12px; }
.variants-values-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
#variantValuesRepeater { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.value-row { display: flex; gap: 8px; align-items: center; }
.value-row input { flex: 1; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal .modal-content { background: #fff; border-radius: 12px; padding: 16px; width: 320px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.validation-error { color: red; font-size: 12px; min-height: 16px; }
.btn { font-weight: 700; border-radius: 20px; border: 0; padding: 6px 12px; cursor: pointer; }
.btn-primary { background: #ffd33b; }
.btn-secondary { background: #999; color: #fff; }
.btn-danger { background: #d9534f; color: #fff; }

