/* -------------------------------------------------------------------------
   KH Bundles/Sets — Set-Vorteil auf der Artikelseite und die Variantenreihe
   auf der Kategorie-Karte (Paket "Bundles/Sets", 02.10.2026).

   Nur Marken-Tokens aus brand.css, keine neuen Farben, keine Bibliothek.
   Handy zuerst.
   ------------------------------------------------------------------------- */

/* === 1. Set-Vorteil (Artikelseite) ====================================== */

.kh-setspar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 6px 0 2px;
}

.kh-setspar__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-success);
    color: #fff;
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: .1px;
}

.kh-setspar__pill strong {
    font-weight: 800;
}

.kh-setspar__icon {
    flex: 0 0 auto;
}

.kh-setspar__ref {
    font-size: 13px;
    line-height: 1.3;
    color: #6b7280;
}

.kh-setspar__ref s {
    color: #6b7280;
}

.kh-setspar__teile {
    white-space: nowrap;
}

/* === 2. Variantenreihe auf der Kategorie-Karte (Entwurf D) ==============
   Eine Karte je Artikel statt einer Karte je Variante: die Karte des
   Vaterartikels zeigt eine kleine, wischbare Reihe der Varianten. Die Reihe
   ist reine Vorschau — geklickt wird die Karte, die Auswahl trifft der Kunde
   auf der Artikelseite. Darum kein Formularfeld und kein eigener Link. */

.kh-cardvars {
    margin: 2px 0 6px;
}

.kh-cardvars__rail {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1px 0 2px;
    /* Am Handy wischbar; ein angeschnittenes letztes Bild zeigt, dass es
       weitergeht (Baymard: mobile interactive swatches). */
    -webkit-overflow-scrolling: touch;
}

.kh-cardvars__rail::-webkit-scrollbar {
    display: none;
}

.kh-cardvars__item {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(17, 24, 39, .14);
    background: #fff;
    overflow: hidden;
    display: block;
}

.kh-cardvars__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kh-cardvars__rest {
    flex: 0 0 auto;
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    border-radius: 6px;
    border: 1px dashed rgba(17, 24, 39, .22);
    background: #fff;
    color: #4b5563;
    font-size: 11.5px;
    line-height: 24px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.kh-cardvars__label {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.25;
    color: #6b7280;
}

@media (min-width: 992px) {
    .kh-cardvars__item,
    .kh-cardvars__rest {
        width: 28px;
        height: 28px;
    }

    .kh-cardvars__rest {
        width: auto;
        line-height: 26px;
    }
}
