/* Variation sans image : repli PHP sur l’image parent ; secours si Woo laisse un slide placeholder gris */
body.syro-fleurs-product.single-product .woocommerce-product-gallery__image.woocommerce-product-gallery__image--placeholder {
  display: none !important;
  min-height: 0 !important;
  background: transparent !important;
}

.single-product .syro-take-all-wrap {
  margin: 14px 0 12px;
  clear: both;
  position: relative;
  z-index: 2;
}

.single-product .syro-take-all-btn {
  width: 100%;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  white-space: normal;
}

.single-product .syro-take-all-btn .syro-take-all-title {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.single-product .syro-take-all-btn .syro-take-all-details {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.3;
}

.single-product .syro-take-all-btn {
  background: #27ae60 !important;
  color: #fff !important;
  border: 1px solid #27ae60;
}

.single-product .syro-take-all-btn:disabled {
  opacity: 1;
  background: #e5e7eb !important;
  border-color: #e5e7eb;
  color: #6b7280 !important;
  cursor: not-allowed;
}

.single-product .syro-take-all-btn.is-active {
  box-shadow: 0 0 0 3px rgba(51, 138, 24, 0.22);
  transform: translateY(-1px);
}

.single-product .syro-take-all-note {
  margin-top: 6px;
  font-size: 12px;
  color: #4b5563;
}

.single-product .syro-weight-buttons-block {
  margin: 12px 0 10px;
  position: relative;
  z-index: 4;
}

.single-product .syro-weight-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-product .syro-weight-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #16a34a;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.single-product .syro-weight-step.active {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.35);
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
}

/* Stock Syro indisponible : vert pâle, non cliquable */
.single-product .syro-weight-step.is-out,
.single-product .syro-weight-step:disabled {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #6b7280;
  box-shadow: none;
}

/* Palier disponible : clics garantis (au-dessus d’éléments positionnés type sticky / formulaire) */
.single-product .syro-weight-step:not(:disabled):not(.is-out) {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Fiche produit fleurs : classe body fiable + masquage total du menu déroulant */
body.syro-fleurs-product table.variations tr.syro-fleurs-poids-row-hidden,
body.syro-fleurs-product table.variations tr:has(select#pa_poids),
body.syro-fleurs-product table.variations tr:has(select[name*="attribute_pa_poids"]) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.syro-fleurs-product select.syro-fleurs-poids-select-hidden,
body.syro-fleurs-product .syro-fleurs-poids-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Masquer l’en-tête de colonne « Poids » si le thème l’affiche encore (ligne souvent masquée par JS) */
body.syro-fleurs-product.single-product table.variations > thead,
body.syro-fleurs-product.single-product table.variations th.label {
  display: none !important;
}

/* Fleurs: on masque le select poids (l'UI est boutons) — rétrocompat body cat */
body.tax-product_cat-fleurs select#pa_poids,
body.tax-product_cat-fleurs select[name*="attribute_pa_poids"],
body.tax-product_cat-fleurs select[id*="poids"],
body.tax-product_cat-fleurs select[name*="poids"],
body[class*="product_cat-fleur"] select#pa_poids,
body[class*="product_cat-fleurs"] select#pa_poids,
body[class*="product_cat-fleur"] select[name*="attribute_pa_poids"],
body[class*="product_cat-fleurs"] select[name*="attribute_pa_poids"],
body[class*="product_cat-fleur"] select[id*="poids"],
body[class*="product_cat-fleur"] select[name*="poids"],
body[class*="tax-product_cat-fleurs"] select#pa_poids,
body[class*="tax-product_cat-fleurs"] select[name*="attribute_pa_poids"],
body[class*="tax-product_cat-fleurs"] select[id*="poids"],
body[class*="tax-product_cat-fleurs"] select[name*="poids"],
.single-product.product_cat-fleurs select#pa_poids,
.single-product.product_cat-fleurs select[name*="attribute_pa_poids"] {
  display: none !important;
}

/* Listing / catalogue (cartes produits) : masquer le select poids */
body.tax-product_cat-fleurs .syro-shop-wrapper .woocommerce ul.products li.product select#pa_poids,
body.tax-product_cat-fleurs .syro-shop-wrapper .woocommerce ul.products li.product select[name*="attribute_pa_poids"],
body.tax-product_cat-fleurs .syro-shop-wrapper .woocommerce ul.products li.product select[id*="poids"],
body.tax-product_cat-fleurs .syro-shop-wrapper .woocommerce ul.products li.product select[name*="poids"],
body[class*="product_cat-fleurs"] .syro-shop-wrapper .woocommerce ul.products li.product select#pa_poids,
body[class*="product_cat-fleurs"] .syro-shop-wrapper .woocommerce ul.products li.product select[name*="attribute_pa_poids"],
body[class*="product_cat-fleurs"] .syro-shop-wrapper .woocommerce ul.products li.product select[id*="poids"],
body[class*="product_cat-fleurs"] .syro-shop-wrapper .woocommerce ul.products li.product select[name*="poids"],
body[class*="product_cat-fleur"] .syro-shop-wrapper .woocommerce ul.products li.product select#pa_poids,
body[class*="product_cat-fleur"] .syro-shop-wrapper .woocommerce ul.products li.product select[name*="attribute_pa_poids"],
.syro-shop-wrapper .woocommerce ul.products li.product select[id*="poids"],
.syro-shop-wrapper .woocommerce ul.products li.product select[name*="poids"],
.syro-shop-wrapper .woocommerce ul.products li.product select#pa_poids,
.syro-shop-wrapper .woocommerce ul.products li.product select[name*="attribute_pa_poids"] {
  display: none !important;
}

body.tax-product_cat-fleurs label[for="pa_poids"],
body.tax-product_cat-fleurs label[for*="pa_poids"],
body[class*="product_cat-fleur"] label[for="pa_poids"],
body[class*="product_cat-fleurs"] label[for="pa_poids"],
body[class*="product_cat-fleur"] label[for*="pa_poids"],
body[class*="product_cat-fleurs"] label[for*="pa_poids"],
.single-product.product_cat-fleurs label[for="pa_poids"],
.single-product.product_cat-fleurs label[for*="pa_poids"] {
  display: none !important;
}

.single-product .syro-take-all-selected .single_add_to_cart_button {
  background: linear-gradient(135deg, #1f7a1f 0%, #2aa52a 100%);
}

.woocommerce-cart .syro-take-all-badge,
.woocommerce-checkout .syro-take-all-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #166534;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .single-product .syro-take-all-btn {
    font-size: 14px;
    min-height: 52px;
  }

  .single-product .syro-weight-steps {
    gap: 8px;
  }

  .single-product .syro-weight-step {
    font-size: 13px;
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .single-product .syro-weight-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

