.product_meta.product_brand {
  max-width: 80px;
  float: right;
  max-height: 45px !important;
  margin-top: -50px;
}

body.single-product .summary .ct-product-divider {
  display: none;
}

.vpcr_prodref {
  color: #999;
  font-size: 14px;
}

.vpcr_prodref .vpc_proitem:not(:empty)::before {
  content: 'REF: ';
  color: #999;
}

.boutonsficheprod {
  --vpcr-btn-icon-size: 30px;
  gap: 10px;
  font-size: 12px !important;

}

/* Mise en ligne des ancres + espacement texte/icone */
#btnbuy .wp-block-button__link,
#btndevis .wp-block-button__link,
#btncustom .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  /* espace entre icône et libellé */
  white-space: nowrap;
  filter: none;
  padding-left: 6px !important;
  padding-right: 16px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

/* Base commune aux icones */
#btnbuy .wp-block-button__link::before,
#btndevis .wp-block-button__link::before,
#btncustom .wp-block-button__link::before {
  content: "";
  display: inline-block;
  width: var(--vpcr-btn-icon-size);
  height: var(--vpcr-btn-icon-size);
  flex: 0 0 var(--vpcr-btn-icon-size);
  position: static !important;
  inset: auto !important;
  /* annule top/right/bottom/left */
  z-index: auto !important;
  opacity: 1 !important;
  filter: none !important;
  background-color: transparent !important;
}

/* Affectation des pictos (chemins racine à adapter si besoin) */
#btnbuy .wp-block-button__link::before {
  background-image: url("icon-marquage.svg");
  background-position: center center;
  /* = center */
  background-size: contain;
  /* conserve le ratio */
  background-repeat: no-repeat;
}

#btndevis .wp-block-button__link::before {
  background-image: url("icon-devis.svg");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}

#btncustom .wp-block-button__link::before {
  background-image: url("icon-custom.svg");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Masque les <select> transformés */
select.vpcr-hidden {
  display: none !important;
}

/* Conteneur d’un attribut */
.vpcr-attr {
  margin: 0;
}

/* En-tête: icône + libellé + valeur courante à droite du libellé */
.vpcr-attr__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  line-height: 1.2;
  font-size: 14px;
  margin-bottom: 25px;
  border-top: 1px solid #666;
  padding-top: 15px;
}

.vpcr-attr__header .vpcr-icon.vpcr-icon--plette {
  display: inline-flex;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.vpcr-attr__header .vpcr-icon.vpcr-icon--stock {
  display: inline-flex;
  width: 32px;
  height: 32px;
  line-height: 0;
}

.labeletstocks {
  color: #999;
}



.vpcr-attr__label {
  display: inline-block;
}

.vpcr-attr__current {
  margin-left: 6px;
  font-weight: 500;
}

/* Grille d’options */
.vpcr-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

/* Swatch (couleur) */
.vpcr-opt .vpcr-swatch {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #D0D5DD;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.02) inset;
}

.vpcr-opt.activated .vpcr-swatch {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.vpcr-opt.disabled .vpcr-swatch {
  opacity: .35;
}

/* Case (autres attributs, ex: tailles) */
.vpcr-opt .vpcr-box {
  min-width: 40px;
  height: 30px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D0D5DD;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 576px) {
  .vpcr-opt .vpcr-swatch {
    width: 40px;
    /* modif mobile */
    height: 40px;
    /* modif mobile */
  }


  /* Case (autres attributs, ex: tailles) */
  .vpcr-opt .vpcr-box {
    height: 34px;
    padding: 0 12px;
  }

}

.vpcr-opt.activated .vpcr-box {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, .08);
}

.vpcr-opt.disabled .vpcr-box {
  opacity: .35;
}

/* Interactions */
.vpcr-opt {
  cursor: pointer;
  user-select: none;
}

.vpcr-opt[aria-disabled="true"] {
  pointer-events: none;
}

/* Bloc Stock */
.vpcr-attr--stock .vpcr-attr__current {
  font-weight: 700;
}


form.variations_form .variations_button select[name^="attribute["] {
  display: none !important;
}


.summary.entry-summary-items div[data-block] {
  margin: 0;
  padding: 0;
}

.entry-summary-items table.variations td {
  display: block
}

.woocommerce div.product form.cart .variations tbody tr td, .woocommerce div.product form.cart .variations tbody tr th {

  max-width: none;
}

a.reset_variations {
  color: #E24A10;
  padding: 4px;
}

.vpcr-opt.nostock {
  opacity: 0.2;
  filter: grayscale(1);
}

.vpcr-opts .vpcr-stockchip {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  margin-top: 6px;
  min-height: 1em;
  font-weight: normal;

  /* ligne réservée même si vide */
}

.labelstocks, .vpcr-stockchip {
  color: #585858;
}

.vpcr-opt.nostock {
  opacity: 0.2;
  filter: grayscale(1);
  pointer-events: none;
  /* bloque le clic */
  cursor: not-allowed;
  /* feedback curseur */
}


.vpcr-non-variation-attributes {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-size: 11px;
}

.vpcr-nva-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.vpcr-nva-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.vpcr-nva-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.vpcr-nva-box {
    padding: 0.15rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    line-height: 1.3;
}

.vpcr-non-variation-attributes .vpcr-nva-label{
  font-weight: 900;
}
.vpcr-non-variation-attributes .vpcr-nva-box {
    padding: 0.2rem 0.5rem!important;
    border: 1px solid #efefef;
    font-size: 11px;
}

/* [VPCR] 1er attribut : reste cliquable même en nostock */
.vpcr-attr--first .vpcr-opt.nostock {
  opacity: 0.6;        /* ~60 % d'opacité */
  filter: none;        /* pas de grisage complet */
  pointer-events: auto;
  cursor: pointer;
}

/* Les autres attributs restent bloqués en nostock */
.vpcr-attr:not(.vpcr-attr--first) .vpcr-opt.nostock {
  opacity: 0.2;
  filter: grayscale(1);
  pointer-events: none;
  cursor: not-allowed;
}
