/* Erix Combination List Module */
.erix-combination-list {
    margin-top: 10px;
    clear: both;
    width: 100%;
}

.erix-combination-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.erix-comb-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
    min-height: 24px;
    cursor: pointer;
}

.erix-comb-item:hover {
    border-color: #000;
    color: #000;
}

/* Color blocks */
.erix-comb-item.erix-comb-color {
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e5e5;
}

.erix-comb-item.erix-comb-color:hover {
    box-shadow: 0 0 0 1px #000;
}

/* Out of stock state */
.erix-comb-item.erix-comb-out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* OVERLAY MODE (Added by JS) */
.erix-combination-list.erix-overlay-mode {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 5px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
    
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

/* Hover triggers the slide up */
.product-miniature:hover .erix-combination-list.erix-overlay-mode,
.thumbnail-container:hover .erix-combination-list.erix-overlay-mode,
article:hover .erix-combination-list.erix-overlay-mode {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 991px) {
    /* Always show on mobile but elegantly at the bottom */
    .erix-combination-list.erix-overlay-mode {
        transform: translateY(0);
        opacity: 1;
        padding: 5px 2px;
    }
    .erix-overlay-mode .erix-combination-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .erix-overlay-mode .erix-comb-item {
        font-size: 10px;
        min-height: 20px;
        padding: 2px 5px;
    }
}
