/* ==========================================================================
   OffRoad Variantengruppen – Auswahl auf der Produktseite + Info auf der Karte
   ========================================================================== */

.ovg,
.ovg-card {
    --ovg-accent: var(--bs-primary, #4b132c);
    --ovg-ink: #1d1a1c;
    --ovg-muted: #6f656b;
    --ovg-line: #e7e1e5;
    --ovg-soft: #faf8f9;
}

.ovg-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Produktseite: Auswahlkasten ---------- */

.ovg {
    margin: 1.25rem 0 1.5rem;
    padding: 1.15rem 1.25rem 1.2rem;
    border: 1px solid var(--ovg-line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, var(--ovg-soft) 100%);
    box-shadow: 0 1px 2px rgba(29, 26, 28, .04), 0 10px 26px -18px rgba(29, 26, 28, .22);
}

.ovg-row + .ovg-row {
    margin-top: 1.1rem;
    padding-top: 1.05rem;
    border-top: 1px solid var(--ovg-line);
}

.ovg-label {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    margin-bottom: .75rem;
}

.ovg-label-name {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ovg-muted);
}

.ovg-label-value {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ovg-ink);
}

.ovg-swatches,
.ovg-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Farbfelder */

.ovg-swatch {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ovg-swatch-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), inset 0 -7px 10px -7px rgba(0, 0, 0, .2);
}

.ovg-swatch:hover,
.ovg-swatch:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(75, 19, 44, .35);
    outline: none;
}

.ovg-swatch.is-selected {
    border-color: var(--ovg-accent);
    box-shadow: 0 8px 16px -10px var(--ovg-accent);
}

.ovg-swatch.is-alt:not(.is-selected) {
    border-style: dashed;
    border-color: #cdc2c8;
}

.ovg-swatch.is-soldout .ovg-swatch-fill {
    opacity: .4;
}

.ovg-swatch.is-soldout::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent calc(50% - 1px), rgba(29, 26, 28, .75) calc(50% - 1px), rgba(29, 26, 28, .75) calc(50% + 1px), transparent calc(50% + 1px));
    pointer-events: none;
}

/* Groessen-Chips */

.ovg-size {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.15rem;
    height: 2.8rem;
    padding: 0 .95rem;
    border: 1.5px solid #d8cfd4;
    border-radius: 12px;
    background: #fff;
    color: var(--ovg-ink);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.ovg-size:hover,
.ovg-size:focus-visible {
    transform: translateY(-1px);
    border-color: var(--ovg-accent);
    color: var(--ovg-accent);
    outline: none;
}

.ovg-size.is-selected {
    border-color: var(--ovg-accent);
    background: var(--ovg-accent);
    color: #fff;
    box-shadow: 0 10px 18px -12px var(--ovg-accent);
}

.ovg-size.is-alt:not(.is-selected) {
    border-style: dashed;
}

.ovg-size.is-soldout {
    color: #a3989f;
    background: repeating-linear-gradient(135deg, #fff 0 6px, #f6f2f4 6px 12px);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.ovg-size.is-soldout.is-selected {
    color: #fff;
    background: var(--ovg-accent);
}

/* Legende */

.ovg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    margin: 1.05rem 0 0;
    padding-top: .85rem;
    border-top: 1px solid var(--ovg-line);
    font-size: .76rem;
    color: var(--ovg-muted);
}

.ovg-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.ovg-legend-dash,
.ovg-legend-strike {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.ovg-legend-dash {
    border: 1.5px dashed #b9adb3;
}

.ovg-legend-strike {
    border: 1.5px solid #d8cfd4;
    background: linear-gradient(135deg, transparent calc(50% - 1px), rgba(29, 26, 28, .7) calc(50% - 1px), rgba(29, 26, 28, .7) calc(50% + 1px), transparent calc(50% + 1px));
    opacity: .7;
}

/* ---------- Listing-Karte: Farbpunkte + Groessenbereich ---------- */

.ovg-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin: .45rem 0 .2rem;
    text-align: center;
}

.ovg-card-colors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.ovg-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ovg-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22);
}

.ovg-card-more {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ovg-muted);
}

.ovg-card-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: .15rem .5rem;
    font-size: .78rem;
    line-height: 1.3;
    color: #4a4046;
}

.ovg-card-line strong {
    font-weight: 700;
    color: var(--ovg-ink);
}

@media (max-width: 575.98px) {
    .ovg {
        padding: 1rem;
        border-radius: 14px;
    }

    .ovg-swatch {
        width: 42px;
        height: 42px;
    }

    .ovg-size {
        min-width: 2.9rem;
        height: 2.6rem;
        padding: 0 .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ovg-swatch,
    .ovg-size {
        transition: none;
    }
}

/* ---------- Produktseite: "Ihre Auswahl" mit Produktnummer ---------- */

.ovg-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .7rem;
    margin-top: 1.1rem;
    padding: .8rem .95rem;
    border-radius: 12px;
    background: #f3eef1;
}

.ovg-selected-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ovg-muted);
}

.ovg-selected-value {
    font-size: .98rem;
    color: var(--ovg-ink);
}

.ovg-selected-nr {
    margin-left: auto;
    font-size: .85rem;
    color: #4a4046;
}

.ovg-selected-nr b {
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ovg-ink);
}

/* ---------- Bewertungen: Umschalter "alle Varianten / nur diese Variante" ---------- */

.ovg-review-scope {
    --ovg-accent: var(--bs-primary, #4b132c);
    margin: 0 0 1.1rem;
}

.ovg-seg {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .5rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ovg-seg-title {
    flex: 0 0 100%;
    float: none;
    width: 100%;
    margin: 0 0 .15rem;
    padding: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6f656b;
}

.ovg-seg-option {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    padding: .6rem .9rem;
    border: 1.5px solid #d8cfd4;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.ovg-seg-option:hover {
    border-color: var(--ovg-accent);
}

.ovg-seg-option:focus-within {
    outline: 2px solid var(--ovg-accent);
    outline-offset: 2px;
}

.ovg-seg-option.is-active {
    border-color: var(--ovg-accent);
    background: var(--ovg-accent);
    color: #fff;
    box-shadow: 0 10px 18px -12px var(--ovg-accent);
}

.ovg-seg-main {
    display: flex;
    flex-direction: column;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
}

.ovg-seg-main small {
    margin-top: .1rem;
    font-size: .76rem;
    font-weight: 500;
    opacity: .85;
}

.ovg-seg-count {
    min-width: 1.7rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: rgba(29, 26, 28, .08);
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}

.ovg-seg-option.is-active .ovg-seg-count {
    background: rgba(255, 255, 255, .22);
}

/* ---------- Einzelne Bewertung: zu welcher Variante sie gehoert ---------- */

.ovg-review-variant {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .15rem .55rem;
    margin: .1rem 0 .6rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: #f3eef1;
    font-size: .78rem;
    color: #4a4046;
}

.ovg-review-variant-key {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .68rem;
    color: #6f656b;
}

.ovg-review-variant-val {
    font-weight: 700;
    color: #1d1a1c;
}

.ovg-review-variant-nr {
    color: #6f656b;
}

.ovg-review-variant.is-current {
    background: rgba(75, 19, 44, .1);
}

@media (max-width: 575.98px) {
    .ovg-selected-nr {
        margin-left: 0;
        flex-basis: 100%;
    }

    .ovg-seg-option {
        flex: 1 1 100%;
    }
}

/* ---------- Such-Vorschlaege unter dem Suchfeld ---------- */

.ovg-suggest-link {
    display: flex !important;
    align-items: center;
    gap: .95rem;
    padding: .7rem 1rem !important;
}

.ovg-suggest-media {
    display: grid;
    flex: 0 0 76px;
    place-items: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.ovg-suggest-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ovg-suggest-noimage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #9a9096;
    background: repeating-linear-gradient(135deg, #f6f2f4 0 8px, #fff 8px 16px);
}

.ovg-suggest-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.ovg-suggest-name {
    display: -webkit-box;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ovg-suggest-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .65rem;
    font-size: .78rem;
    opacity: .9;
}

.ovg-suggest-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ovg-suggest-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.ovg-suggest-dots small {
    margin-left: .1rem;
    font-size: .72rem;
    font-weight: 600;
}

.ovg-suggest-pill {
    padding: .1rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.ovg-suggest-price {
    flex: 0 0 auto;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.ovg-suggest-from {
    display: block;
    font-size: .68rem;
    font-weight: 500;
    opacity: .75;
}

@media (max-width: 575.98px) {
    .ovg-suggest-media {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .ovg-suggest-sizes {
        display: none;
    }
}

/* ---------- Produktseite: weitere lieferbare Farben ---------- */

.ovg-reco {
    --ovg-accent: var(--bs-primary, #4b132c);
    margin: 2.25rem 0 1rem;
    padding: 1.5rem 1.5rem 1.6rem;
    border: 1px solid #e7e1e5;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #faf8f9 100%);
    box-shadow: 0 1px 2px rgba(29, 26, 28, .04), 0 10px 26px -18px rgba(29, 26, 28, .22);
}

.ovg-reco-head {
    margin-bottom: 1.1rem;
}

.ovg-reco-title {
    margin: .15rem 0 0;
    font-size: 1.6rem;
    line-height: 1.15;
    color: #1d1a1c;
}

.ovg-reco-block + .ovg-reco-block {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid #e7e1e5;
}

.ovg-reco-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .7rem;
    margin: 0 0 .9rem;
    font-size: 1.15rem;
    line-height: 1.2;
    color: #1d1a1c;
}

.ovg-reco-sub small {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6f656b;
}

.ovg-reco-similar {
    row-gap: 1rem;
}

.ovg-more-kicker {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6f656b;
}

.ovg-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ovg-more-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1.5px solid #e1d9de;
    border-radius: 14px;
    background: #fff;
    color: #1d1a1c;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ovg-more-card:hover,
.ovg-more-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--ovg-accent);
    box-shadow: 0 14px 24px -16px var(--ovg-accent);
    outline: none;
}

.ovg-more-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background: #fff;
}

.ovg-more-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .5rem;
}

/* Ohne Foto: grosse Farbflaeche statt einer leeren Kachel */
.ovg-more-swatch {
    width: 58%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset 0 -10px 16px -10px rgba(0, 0, 0, .25);
}

.ovg-more-chip {
    position: absolute;
    top: .55rem;
    right: .55rem;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}

.ovg-more-body {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .7rem .8rem .8rem;
    border-top: 1px solid #f0eaed;
}

.ovg-more-color {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
}

.ovg-more-price {
    font-size: .95rem;
    font-weight: 700;
    color: var(--ovg-accent);
}

.ovg-more-stock {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 600;
    color: #2e7d4a;
}

.ovg-more-stock i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e9a4f;
    box-shadow: 0 0 0 3px rgba(46, 154, 79, .18);
}

.ovg-more-rest {
    margin: .85rem 0 0;
    font-size: .8rem;
    color: #6f656b;
}

@media (max-width: 575.98px) {
    .ovg-reco {
        padding: 1rem;
        border-radius: 14px;
    }

    .ovg-more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Empfehlung: ein Raster, kleines Etikett ueber jeder Karte ---------- */

.ovg-reco-grid {
    row-gap: 1.1rem;
}

.ovg-reco-item {
    display: flex;
    flex-direction: column;
}

.ovg-reco-item > .product-box,
.ovg-reco-item > .card {
    flex: 1 1 auto;
}

.ovg-reco-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .5rem;
    min-height: 1.9rem;
    margin: 0 0 .5rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: #f3eef1;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #4a4046;
}

.ovg-reco-tag.is-color,
.ovg-reco-tag.is-size {
    background: rgba(46, 154, 79, .12);
    color: #226b3a;
}

.ovg-reco-tag-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
