@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── COLORES WRAP ─── */
.vss-colores-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 16px;
}

/* ─── CÍRCULOS DE COLOR ─── */
.vss-color-swatch {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
    cursor: pointer;
    outline: 1px solid #2A2154;
    outline-offset: 0px;
    background: none;
    transition: outline-offset 0.15s ease, outline-width 0.15s ease;
}

.vss-color-swatch .vss-swatch-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Color seleccionado */
.vss-color-swatch.vss-selected {
    outline: 2px solid #2A2154;
    outline-offset: 3px;
    border: 1px solid rgba(0,0,0,0.15);
}

/* Color agotado – opción D: muy tenue + raya diagonal */
.vss-color-swatch.vss-out-of-stock {
    opacity: 0.38;
    cursor: not-allowed;
    position: relative;
    outline: 1px solid rgba(42,33,84,0.3);
    outline-offset: 0px;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}
.vss-color-swatch.vss-out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 1.5px;
    background: #2A2154;
    transform: rotate(-45deg);
    transform-origin: center;
    border-radius: 0;
}

/* ─── TALLAS WRAP ─── */
.vss-tallas-wrap {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    width: 100%;
    margin-bottom: 16px;
}

/* ─── BOTONES DE TALLA ─── */
.vss-talla-swatch {
    width: 100%;
    height: auto;
    border-radius: 6px;
    padding: 15px 6px;
    border: 1px solid #2A2154;
    text-align: center;
    background: #FFFCF1;
    font-family: Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2A2154;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

/* Talla seleccionada */
.vss-talla-swatch.vss-selected {
    background: #2A2154;
    border-color: #2A2154;
    color: #F6ECDC;
    outline: none;
}

/* Talla agotada */
.vss-talla-swatch.vss-out-of-stock {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ─── ETIQUETAS (título del atributo) ─── */
.vss-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #2A2154;
    margin-bottom: 8px;
    display: block;
}
.vss-label::before {
    content: "◎ ";
}

/* ─── TABLET ─── */
@media (max-width: 768px) {
    .vss-tallas-wrap {
        grid-template-columns: repeat(8, 1fr);
        gap: 4px;
    }
    .vss-talla-swatch {
        font-size: 13px;
        padding: 14px 4px;
    }
    .vss-color-swatch {
        width: 36px;
        height: 36px;
    }
}

/* ─── MÓVIL ─── */
@media (max-width: 480px) {
    .vss-tallas-wrap {
        grid-template-columns: repeat(8, 1fr);
        gap: 3px;
    }
    .vss-talla-swatch {
        font-size: 10px;
        padding: 10px 2px;
        border-radius: 4px;
    }
    .vss-color-swatch {
        width: 32px;
        height: 32px;
    }
    .vss-colores-wrap {
        gap: 8px;
    }
}
