/* In-cart badge overlay */
.fdm-in-cart-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  color: #0f5132;
  border: 1px solid #d1e7dd;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 3;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms ease, background 180ms ease, border-color 180ms ease;
}

.fdm-in-cart-badge .fdm-icb-icon { display: inline-flex; align-items: center; justify-content: center; }

/* Text initially hidden, fades in on hover */
.fdm-in-cart-badge .fdm-icb-text {
  font-weight: 600;
  font-size: 13px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 220ms ease, max-width 220ms ease;
}

/* Drive animation via classes */
.fdm-in-cart-badge.is-visible { opacity: 1; }
.fdm-in-cart-badge.text-visible .fdm-icb-text { opacity: 1; max-width: 120px; }

/* Make sure wrapper can position badge */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { position: relative; }
