/* Variablen – gern anpassen */
.as-form-builder{
  --fbx-card-radius: 12px;
  --fbx-card-pad: 1rem;
  --fbx-card-border: 1px solid #e9ecef;
  --fbx-card-shadow: 0 2px 10px rgba(0,0,0,.06);
  --fbx-card-shadow-hover: 0 8px 24px rgba(0,0,0,.08);
  --fbx-muted: #6c757d;
}

/* Card-Container */
.as-form-builder .fbx-product{
  background: #fff;
  border: var(--fbx-card-border);
  border-radius: var(--fbx-card-radius);
  padding: var(--fbx-card-pad);
  box-shadow: var(--fbx-card-shadow);
  transition: box-shadow .2s ease, transform .06s ease;
  margin-bottom: 1.25rem;
}
.as-form-builder .fbx-product:hover{
  box-shadow: var(--fbx-card-shadow-hover);
}

.as-form-builder .fbx-address-width {
  width: 100%;
  max-width: 720px; /* oder aus deinen Parametern generiert */
}


/* Bild oben – randlos über volle Kartenbreite (schönes „edge-to-edge“) */
.as-form-builder .fbx-product .fbx-product-image{
  margin: calc(-1 * var(--fbx-card-pad)) calc(-1 * var(--fbx-card-pad)) .75rem;
}
.as-form-builder .fbx-product .fbx-product-image img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--fbx-card-radius) - 2px) calc(var(--fbx-card-radius) - 2px) 0 0;
}

/* Titel, Beschreibung, Preis – wie gehabt */
.as-form-builder .fbx-product-title{
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .25rem;
}
.as-form-builder .fbx-product-desc{
  color: var(--fbx-muted);
  font-weight: 400;
  line-height: 1.6;
  margin: .25rem 0 .75rem;
}
.as-form-builder .fbx-product-price{
  font-weight: 600;
  margin: 0 0 .5rem;
}
.as-form-builder .fbx-product-price .fbx-currency{ margin-right: .25rem; }

/* Anzahl in einer Zeile (− [input] +) */
.as-form-builder .fbx-qty-wrap{
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .25rem 0 .75rem;
  flex-wrap: nowrap;
}
.as-form-builder .fbx-qty-wrap .form-label{ margin: 0; font-weight: 600; }
.as-form-builder .fbx-qty-control{ display: inline-flex; align-items: center; gap: .25rem; }

.as-form-builder .fbx-qty-inc,
.as-form-builder .fbx-qty-dec{
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid #222; background: #fff; color: #222;
  border-radius: 6px; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.as-form-builder .fbx-qty-inc:hover,
.as-form-builder .fbx-qty-dec:hover{ background: #f5f5f5; }

.as-form-builder .fbx-qty-input{
  width: 64px; height: 36px; padding: 0 .5rem; text-align: center;
  border: 1px solid #222; border-radius: 6px; box-shadow: none;
}
/* Spinners ausblenden */
.as-form-builder input.fbx-qty-input[type="number"]::-webkit-outer-spin-button,
.as-form-builder input.fbx-qty-input[type="number"]::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.as-form-builder input.fbx-qty-input[type="number"]{ -moz-appearance: textfield; }

/* Footer (Zwischensumme) */
.as-form-builder .fbx-product-footer{ margin-top: .5rem; }
.as-form-builder .fbx-product-subtotal{ font-weight: 600; }
.as-form-builder .fbx-product-subtotal .fbx-subtotal-label{
  color: var(--fbx-muted); font-weight: 400; margin-right: .35rem;
}

/* Grand Total */
.as-form-builder .fbx-grandtotal{
  border-top: 1px solid #e9ecef;
}
.as-form-builder .fbx-grandtotal-label{ color: var(--fbx-muted); margin-right: .5rem; }

/* Mobil: nichts Besonderes nötig – Bild bleibt oben */

/* === Alle Produkt-Karten je Reihe gleich hoch === */

/* 1) Die Bootstrap-Spalten zu Flex-Containern machen */
.as-form-builder .row[data-fbx="1"] > [class^="col-"],
.as-form-builder .row[data-fbx="1"] > [class*=" col-"]{
  display: flex;
}

/* 2) Die Karte selbst auf volle Spaltenhöhe strecken */
.as-form-builder .fbx-product{
  display: flex;              /* Bild oben bleibt, wir gehen in Spaltenrichtung */
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* 3) Bild & Inhalt sollen nicht schrumpfen */
.as-form-builder .fbx-product-image{ flex: 0 0 auto; }
.as-form-builder .fbx-product-main { flex: 0 0 auto; }

/* 4) Footer nach unten drücken – damit überall bündig */
.as-form-builder .fbx-product-footer{
  margin-top: auto;
}

.fbx-grandwrap { margin-top: 20px; }

/* Falls du das Card-Layout nutzt: sicherheitshalber auch hier volle Höhe */
.as-form-builder .fbx-product.fbx-card{ height: 100%; }
