.dm-related-variants {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 2px 0 4px;
}

/* Produkt bez variant – prázdný blok nezabírá žádné místo */
.dm-related-variants:empty {
    display: none;
}

/* ------------------------------------------------------------------
   Classic 1.7.x: karta má pevné rozměry (karta 318px, popis absolute
   bottom:0 height:70px, obrázek calc(100% - 70px)) a hover lišta
   (Rychlý náhled) se schovává ZA absolutním popisem. Sdruženému
   produktu proto kartu i popis o 40px zvětšíme a hover lište posuneme
   výsuv tak, aby vyjela na stejnou úroveň (hranice obrázku) jako u
   klasických produktů. Klasické produkty zůstávají beze změny.
   Pozn.: classic duplikuje pravidla pod `#products ...` (specificita
   s ID), proto musí být selektory s #products uvedené explicitně.
   ------------------------------------------------------------------ */
#products .product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)),
.product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)) {
    height: 358px;
}

#products .product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)) .product-thumbnail,
.product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)) .product-thumbnail {
    height: 248px;
}

#products .product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)) .product-description,
.product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)) .product-description {
    height: 110px;
}

#products .product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)):hover .highlighted-informations,
#products .product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)):focus .highlighted-informations,
.product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)):hover .highlighted-informations,
.product-miniature .thumbnail-container:has(.dm-related-variants:not(:empty)):focus .highlighted-informations {
    bottom: 8rem;
}

.dm-rv-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
    width: 100%;
    /* overflow: hidden záměrně vynecháno – ořezávalo by hover efekt */
}

/* Dočasně povolíme overflow na card containeru při hoveru nad variantou */
.thumbnail-container:has(.dm-rv-wrap:hover) {
    overflow: visible;
}

.dm-rv-wrap {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.dm-rv {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    flex-shrink: 0;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dm-rv-wrap:hover .dm-rv {
    transform: scale(1.5);
    border-color: #999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 100;
}

.dm-rv-more {
    font-size: 11px;
    color: #888;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}
