/* =========================================================
   OROPLATA — ARJENT / METALS
   Spécifique au template Argent / Or
   Dépend du thème global op-theme-v6.css
========================================================= */

/* ---------- Variante / sélection ---------- */

.variant-row {
  width: 100%;
}

.variant-row .variant-select {
  width: 100%;
  display: block;
}

/* ---------- Zone actions ---------- */

.action-row {
  display: block;
  margin-top: 0.5rem;
}

.product-block .action-row {
  margin-top: auto;
}

.action-row .uom-client {
  font-weight: 700;
  font-size: 1rem;
  opacity: 1;
  line-height: 1;
}

.product-block .btn-main {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}
/* ---------- Zones métal cachées / affichées dynamiquement ---------- */

.metal-slots {
  display: none;
  min-height: 88px;
}

.metal-slots .field {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.metal-slots .field input {
  width: 120px;
  padding: 0.4rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.metal-slots .sheet-note {
  display: none;
  margin-bottom: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Rod / baguette ---------- */

.rod-length {
  display: none;
  margin-top: 0.5rem;
  min-height: 38px;
}

.product-block .rod-length .rod-choose {
  padding: 0.35rem 0.6rem;
  border: 1px solid #e3c24a;
  border-radius: 6px;
  background: rgba(251, 200, 29, 0.22);
  color: #000;
  margin-right: 0.4rem;
  cursor: pointer;
  font-weight: 500;
}

.product-block .rod-length .rod-choose:hover {
  background: rgba(251, 200, 29, 0.35);
}

.product-block .rod-length .rod-choose.is-selected {
  background: #fbc81d !important;
  border-color: #c89600 !important;
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 2px rgba(251, 200, 29, 0.25) inset !important;
}

/* ---------- Prix métal / fil ---------- */

.wire-total[data-role="wire-total"] {
  display: none;
  min-height: 24px;
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 600;
}

.product-block [data-role="inline-price"] {
  min-height: 24px;
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 600;
}

/* ---------- Soudure ---------- */

.solder-box {
  display: none;
  margin-top: 0.5rem;
}

.solder-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-block .solder-buttons .solder-choose {
  padding: 0.35rem 0.6rem;
  border: 1px solid #e3c24a;
  border-radius: 6px;
  background: rgba(251, 200, 29, 0.22);
  color: #000;
  margin-right: 0.4rem;
  cursor: pointer;
  font-weight: 500;
}

.product-block .solder-buttons .solder-choose:hover {
  background: rgba(251, 200, 29, 0.35);
}

.product-block .solder-buttons .solder-choose.is-selected {
  background: #fbc81d !important;
  border-color: #c89600 !important;
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 2px rgba(251, 200, 29, 0.25) inset !important;
}

.product-block .solder-total {
  display: none;
  min-height: 24px;
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 600;
}

/* ---------- Stabilité visuelle des cartes métal ---------- */

.product-block .product-info {
  min-height: 280px;
}

/* Mobile */
@media (max-width: 768px) {
  .product-block .product-info {
    min-height: 300px;
  }
}

/* =========================================================
   INV-GUARD MODAL — ARGENT
========================================================= */

#invGuardModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

#invGuardModal .bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#invGuardModal .box {
  position: relative;
  max-width: 520px;
  margin: 12vh auto 0 auto;
  background: #292929;
  color: #fbc21a;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 16px 16px 14px 16px;
  border: 1px solid rgba(251, 194, 26, 0.30);
}

#invGuardModal .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#invGuardModal .ttl {
  font-weight: 900;
  font-size: 16px;
  color: #fbc21a;
}

#invGuardModal .x {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #fbc21a;
}

#invGuardModal .txt {
  margin-top: 10px;
  color: #fbc21a;
  font-size: 14px;
  line-height: 1.35;
}

#invGuardModal .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

#invGuardModal .b {
  flex: 1 1 160px;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  color: #292929;
}

#invGuardModal .b.adjust {
  background: #fbc21a;
}

#invGuardModal .b.notify {
  background: #e6e6e6;
}

#invGuardModal .b.cancel {
  flex: 1 1 120px;
  border: 1px solid #bbb;
  background: #fff;
}