/* =========================================================
   Global product presentation tweaks
   ========================================================= */

/* Center product gallery image */
.woocommerce-product-gallery > .flex-viewport {
  text-align: center;
}

/* Hide Woo default bottom variation price
   We sync this to the top price area via JS */
.product .woocommerce-variation-price {
  display: none;
}

/* =========================================================
   Avada top price styling
   ========================================================= */

/* Restore correct sale strike-through */
.fusion-woo-price-tb p.price del {
  text-decoration: line-through;
  opacity: 0.6;
  font-weight: 400;
}

.fusion-woo-price-tb p.price ins {
  text-decoration: none;
  font-weight: 600;
}

/* Normalise spacing and line height */
.fusion-woo-price-tb p.price {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* Sale badge vertical alignment */
.fusion-woo-price-tb .fusion-onsale {
  transform: translateY(-2px);
}

/* =========================================================
   Disable ALL default Woo stock messaging
   ========================================================= */

/* Single product pages */
.woocommerce-variation-availability,
.stock,
p.stock {
  display: none !important;
}

/* Archive and category cards */
.products .stock,
.products p.stock {
  display: none !important;
}

/* Prevent accidental reflow from hidden stock blocks */
.stock:empty,
p.stock:empty {
  display: none !important;
}

/* =========================================================
   Custom variation availability notice
   ========================================================= */

.custom-variation-availability {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Out of stock */
.custom-variation-availability.is-out-of-stock {
  background: #ffecec;
  border: 1px solid #f5a5a5;
  color: #b42323;
}

/* Backorder */
.custom-variation-availability.is-backorder {
  background: #fff6e5;
  border: 1px solid #f2c97d;
  color: #8a5a00;
}

.custom-variation-availability p {
  margin: 0;
}

/* =========================================================
   Optional UX polish
   ========================================================= */

/* Prevent layout jump when message appears */
form.variations_form {
  position: relative;
}

/* Ensure notices do not affect button alignment */
.single_variation_wrap {
  margin-top: 0;
}