/* ── Contenedor ───────────────────── */
.qa-swatches {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Base swatch ──────────────────── */
.qa-swatch {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    border: 2px solid #ddd;
    position: relative;
    outline: none;
}
.qa-swatch:focus-visible {
    outline: 3px solid #0047ff;
    outline-offset: 2px;
}
.qa-swatch.selected {
    border-color: #111;
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(0,0,0,.12);
}

/* ── Colores ──────────────────────── */
.qa-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
}
.qa-color::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.qa-color:hover::after,
.qa-color:focus-visible::after {
    opacity: 1;
}

/* ── Tallas / Labels ──────────────── */
.qa-label {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: #333;
}
.qa-label:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}
.qa-label.selected {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ── Agotado ──────────────────────── */
.qa-disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
.qa-label.qa-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    background: #999;
    transform: rotate(-20deg);
}

/* ── Ocultar selects originales ───── */
.variations select {
    display: none !important;
}