/* =========================
   ENCABEZADO
========================= */

.add-product-header{

    margin-bottom:24px;
  
  }
  
  .add-product-subtitle{
  
    display:inline-block;
  
    margin-bottom:8px;
  
    color:#25d366;
  
    font-size:13px;
  
    font-weight:700;
  
    text-transform:uppercase;
  
    letter-spacing:.08em;
  
  }
  
  .add-product-header h2{
  
    margin:0;
  
    font-size:32px;
  
    font-weight:800;
  
  }
  
  .add-product-header p{
  
    margin-top:8px;
  
    color:var(--muted);
  
    font-size:15px;
  
    line-height:1.5;
  
  }

  /* =========================
   PANEL
========================= */

.add-product-panel{
    max-width: 720px;
    margin: 0 auto;
  }
  
  /* =========================
   BARRA SUPERIOR MÓVIL
========================= */

.add-product-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
  
    margin-bottom: 22px;
  }
  
  .add-product-topbar h2 {
    margin: 0;
  
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }
  
  .add-product-cancel,
  .add-product-save {
    width: auto;
    padding: 8px 0;
  
    color: var(--accent);
    background: transparent;
    border: none;
  
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }
  
  .add-product-cancel {
    justify-self: start;
  }
  
  .add-product-save {
    justify-self: end;
  }

  /* =========================
   INFORMACIÓN BÁSICA
========================= */

.product-form-section {
    margin-bottom: 18px;
  }
  
  .product-form-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  
  .form-field {
    min-width: 0;
  }
  
  .form-field--full {
    grid-column: 1 / -1;
  }
  
  .form-field label {
    margin-bottom: 5px;
  }
  
  @media (max-width: 640px) {
    .form-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
  
    .form-field--full {
      grid-column: 1 / -1;
    }
  }

  /* =========================
   SUBIR FOTOGRAFÍAS
========================= */

.photo-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }
  
  .photo-upload-box{
  
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
  
    gap:10px;
  
    min-height:180px;
  
    padding:24px;
  
    border:2px dashed #3b3d44;
    border-radius:18px;
  
    background:#17191d;
  
    cursor:pointer;
  
    transition:.25s;
  }
  
  .photo-upload-box:hover{
  
    border-color:#25d366;
  
    background:#1b1e22;
  
  }
  
  .photo-upload-box i{
  
    font-size:46px;
  
    color:#25d366;
  
  }
  
  .photo-upload-box strong{
  
    font-size:16px;
  
  }
  
  .photo-upload-box span{
  
    color:var(--muted);
  
    font-size:13px;
  
  }

  /* =========================
   PIE DEL FORMULARIO
========================= */

.product-form-footer{

    margin-top:24px;
  
    padding:20px;
  
    border:1px solid var(--line);
  
    border-radius:18px;
  
    background:#17191d;
  
  }
  
  .per-photo-option{
  
    display:flex;
  
    align-items:center;
  
    gap:10px;
  
    margin-bottom:18px;
  
    font-size:14px;
  
  }
  
  .product-form-note{
  
    display:flex;
  
    align-items:flex-start;
  
    gap:10px;
  
    padding:14px 16px;
  
    margin-bottom:18px;
  
    border:1px solid rgba(37,211,102,.35);
  
    border-radius:14px;
  
    background:rgba(37,211,102,.08);
  
    color:#d8ffe5;
  
    font-size:14px;
  
    line-height:1.5;
  
  }
  
  .product-form-note i{
  
    color:#25d366;
  
    font-size:18px;
  
    margin-top:2px;
  
  }
  
  .product-form-actions{
  
    display:flex;
  
    flex-direction:column;
  
    gap:12px;
  
  }

  .photo-data {
    display: grid;
    grid-template-columns: 1fr 55px;
    gap: 6px;
    width: 100%;
    padding: 7px;
    box-sizing: border-box;
    background: #17191e;
  }
  
  .photo-data label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  
  .photo-data span {
    font-size: 10px;
    color: #aab2c0;
  }
  
  .photo-data input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  
    padding: 6px;
  
    border: 1px solid #343943;
    border-radius: 6px;
  
    background: #101216;
    color: #fff;
  
    font-size: 12px;
    outline: none;
  }
  
  .photo-data input:focus {
    border-color: #00d26a;
  }

  /* Quitar flechas de inputs numéricos */
.photo-data input[type="number"]::-webkit-inner-spin-button,
.photo-data input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.photo-data input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}


.remove-preview-photo {
  position: absolute;
  top: 6px;
  right: 6px;

  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.75);
  color: #fff;

  font-size: 18px;
  line-height: 1;
  cursor: pointer;

  z-index: 5;
}

.remove-preview-photo:hover {
  background: #dc2626;
}