    .product-variant-block {
            margin-top: 24px;
            border-top: 1px solid #eee;
            padding-top: 16px;
        }
        .product-variant-title {
            font-size: 1rem;
            font-weight: 600;
            margin: 0 0 12px;
        }

        .product-variant-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 210px;        /* <- Höhe limitiert */
            overflow-y: auto;         /* <- scrollbar */
            padding-right: 4px;       /* etwas Platz für Scrollbar */
        }

        .product-variant-loading {
            font-size: 0.9rem;
            color: #666;
        }

        .product-variant-row {
            display: grid;
            grid-template-columns: 1fr auto auto; /* Attribute | Preis | Button */
            column-gap: 16px;
            align-items: center;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #eee;
            background: #fafafa;
        }

        .product-variant-attrs {
            font-size: 0.9rem;
            display: flex;
            flex-wrap: wrap;
            gap: 6px 10px;
        }

        .product-variant-attr-label {
            font-weight: 500;
        }

        .product-variant-price {
            font-size: 0.95rem;
            font-weight: 600;
            white-space: nowrap;
            text-align: right;
            min-width: 90px;
            font-variant-numeric: tabular-nums; /* wenn Font das kann, stehen Preise sauber untereinander */
        }

        .product-variant-select-btn {
            padding: 8px 14px;
            border-radius: 999px;
            border: 1px solid #000;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 600;
            background: #ffffff;
            color: #000;
            transition: all 0.15s ease-in-out;
        }

        .product-variant-select-btn.is-active {
            background: #000080;
            color: #ffffff;
            border-color: #000080;
        }

        .product-variant-select-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
.product-variant-scroll-hint {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.variant-add-to-cart-btn {
    margin-left: auto;       /* schiebt den Button nach rechts */
    display: block;          /* wichtig für margin-left:auto */
}


.variant-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.variant-modal-overlay.is-visible {
    display: flex;
}

.variant-modal {
    background: #ffffff;
    border-radius: 18px;
    max-width: 640px;
    width: 90%;
    padding: 2rem 2.5rem;
    position: relative;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.variant-modal h2 {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.variant-modal-text {
    margin: 0 0 1.5rem;
    line-height: 1.6;
    color: #444;
}

/* Close-Button */
.variant-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

/* Varianten-Grid */
.variant-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.variant-option {
    display: flex;                  /* Titel & Preis nebeneinander */
    align-items: center;
    justify-content: space-between; /* Titel links, Preis rechts */
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f8f8f8;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
    font-size: 0.95rem;
}

.variant-option:hover {
    border-color: #f2a300;
    background: #fff9eb;
    transform: translateY(-1px);
}

.variant-option-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.variant-option-price {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    margin-left: 0.5rem;
    color: #222;
}
.variant-modal-loading {
    display: none;
    font-size: 0.9rem;
    color: #777;
}

.variant-modal-error {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #b30000;
}

@media (max-width: 600px) {
    .variant-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Overlay + Blur */
.vs_modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.vs_modal.vs_open {
  display: block;
}

.vs_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Panel: mittig, volle Breite */
.vs_panel {
  position: relative;
  width: 100%;
  margin-top: 12vh;           /* ca. Mitte */
  padding: 14px 14px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(0,0,0,0.18);
}

/* Optional: auf Desktop etwas "schöner" */
@media (min-width: 1024px) {
  .vs_panel {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

.vs_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
}

.vs_title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.vs_close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.vs_body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Slider track */
.vs_track {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 8px;
}

/* Cards */
.vs_card {
  flex: 0 0 auto;
  width: 220px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  scroll-snap-align: center;
}

@media (max-width: 420px) {
  .vs_card { width: 78vw; }
}

.vs_card_img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f4f4f4;
}

.vs_card_body {
  padding: 10px;
}

.vs_card_title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
}

.vs_card_attrs {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.35;
}

.vs_nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  /* auf Mobile optional kleiner/unsichtbar – Swipe reicht */
  .vs_nav { display: none; }
}

.vs_footer {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
}

.vs_card_meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vs_badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
}

.vs_badge_ok { opacity: 0.95; }
.vs_badge_no { opacity: 0.55; }

.vs_card_disabled {
  opacity: 0.7;
}

.product-variant-slider-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

