/* static/corestatic/css/inventory/image-carousel.css */
.variant-carousel {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 4px 0;
}

.variant-item {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;

    display: grid;
    grid-template-rows: 45px auto;

    padding: 4px;
    overflow: hidden;

    cursor: pointer; /* 👈 KEY */
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

/* 👇 Hover state */
.variant-item:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* 👇 Active (selected) state */
.variant-item.active {
    border: 2px solid #0d6efd;
    background: rgba(13, 110, 253, 0.15);
}

.variant-thumb {
    width: 100%;
    height: 45px;        /* 👈 FIXED HEIGHT */
    object-fit: contain;
    display: block;
}
.variant-item p {
    font-size: 9px;
    margin: 0;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.variant-group-label {
    font-size: 10px;
    font-weight: bold;
    padding: 0 4px;
    display: flex;
    align-items: center;
    color: #ddd;
    white-space: nowrap;
}

.variant-group-separator {
    width: 1px;
    height: 40px;
    background: #ddd;
    margin: 0 6px;
}


