/* OPTIONS DE LA FENÊTRE « AJOUTER PRODUIT » (produit-options.js) */

#produitModal .po-cache {
  display: none !important;
}

#produitModal .po-zone {
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

#produitModal .po-zone[hidden] {
  display: none !important;
}

#produitModal .po-zone h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1f3a68;
}

#produitModal .po-aide {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.4;
}

#produitModal .po-avert {
  margin: -4px 0 8px;
  color: #b42318;
  font-size: 12.5px;
  font-weight: 600;
}

#produitModal .po-avert[hidden] {
  display: none;
}

#produitModal .po-ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

#produitModal .po-ligne.po-fin {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 10px;
}

#produitModal .po-zone input[type="text"],
#produitModal .po-zone select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

#produitModal .po-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#produitModal .po-grille-3 {
  grid-template-columns: 1fr;
}

#produitModal .po-grille label {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
}

#produitModal .po-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

#produitModal .po-btn.po-principal {
  border-color: #1f3a68;
  background: #1f3a68;
  color: #fff;
}

#produitModal .po-btn.po-x {
  width: 36px;
  padding: 0;
  font-size: 18px;
  color: #b42318;
}

#produitModal .po-lien {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #2563eb;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Étiquettes */
#produitModal .po-puces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#produitModal .po-puces:empty {
  display: none;
}

#produitModal .po-puce {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border-radius: 99px;
  background: #e9eef8;
  color: #1f3a68;
  font-size: 13px;
  font-weight: 600;
}

#produitModal .po-puce button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 58, 104, .12);
  color: #1f3a68;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

#produitModal .po-saisie-etiquette[hidden] {
  display: none;
}

/* Photos */
#produitModal .po-vignettes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#produitModal .po-vignette {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
}

#produitModal .po-vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#produitModal .po-vignette.po-principale {
  border: 2px solid #1f3a68;
}

#produitModal .po-vignette figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2px;
  background: rgba(31, 58, 104, .85);
  color: #fff;
  font-size: 10.5px;
  text-align: center;
}

#produitModal .po-v-retirer,
#produitModal .po-v-etoile {
  position: absolute;
  top: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

#produitModal .po-v-retirer { right: 4px; }
#produitModal .po-v-etoile { left: 4px; color: #fde68a; }

#produitModal .po-v-ajouter {
  display: grid;
  place-content: center;
  border-style: dashed;
  color: #1f3a68;
  font-size: 26px;
  cursor: pointer;
}

#produitModal .po-v-ajouter span {
  font-size: 12px;
  font-weight: 600;
}

/* Plusieurs prix */
#produitModal .po-prix-ligne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e5e7eb;
}

#produitModal .po-prix-ligne .po-prix-nom {
  grid-column: 1 / -1;
}

#produitModal .po-devise input {
  flex: 1;
  min-width: 0;
}

#produitModal .po-devise {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

#produitModal .po-devise input {
  text-align: right;
}

@media (max-width: 560px) {
  #produitModal .po-grille,
  #produitModal .po-grille-3 {
    grid-template-columns: 1fr;
  }

}

/* Vignette dans la liste des produits et la recherche */
.lp-photo,
.rps-photo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
  background: #f3f4f6;
}

.lp-avec-photo,
.rps-avec-photo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-etiquette {
  display: inline-block;
  margin: 2px 4px 0 0;
  padding: 1px 7px;
  border-radius: 99px;
  background: #e9eef8;
  color: #1f3a68;
  font-size: 11px;
  font-weight: 600;
}

.rps-niveau {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
}

#produitModal .po-info-code {
  margin: -4px 0 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
}

#produitModal .po-info-code[hidden] {
  display: none;
}
