.fc-upsell-section {
  margin-top: 36px;
}

.fc-upsell-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.fc-upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .fc-upsell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fc-upsell-grid {
    grid-template-columns: 1fr;
  }
}

.fc-upsell-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative; /* establish stacking context */
}

.fc-upsell-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.fc-upsell-mockup {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  z-index: 1;
  pointer-events: none; /* never block button hover/clicks */
}

.fc-upsell-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.fc-upsell-box {
  position: absolute;
  overflow: hidden;
  z-index: 2;
}

.fc-upsell-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.04);
  mix-blend-mode: multiply;
  z-index: 3;
}

.fc-upsell-meta {
  padding: 12px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 5;
}

.fc-upsell-name {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Let WooCommerce's .button styling control visuals; only tweak spacing */
.fc-upsell-cta.button { margin-left: auto; }

/* Underline animation now comes from theme's .button .qodef-m-text:after rules */


