/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 
/*
 * ===================================================================
 * ESTILOS PARA LA TABLA DE VARIACIONES PERSONALIZADA
 * ===================================================================
 */

#variation-matrix-container {
    background-color: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2em;
    padding: 10px;
    overflow-x: auto;
}

.variation-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
}

.variation-matrix th,
.variation-matrix td {
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
    border: none;
    white-space: nowrap;
}

.variation-matrix th {
    font-weight: 600;
    color: #444;
}

.variation-cell {
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    min-width: 50px;
}

/* Estado: Disponible pero no seleccionado */
.variation-cell.available {
    background-color: #ededed;
    cursor: pointer;
}

.variation-cell.available:hover {
    background-color: #0C1D2B;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Estado: Seleccionado */
.variation-cell.selected {
    background-color: #747E86; /* Verde de éxito */
    color: white;
    font-weight: bold;
}

/* Estado: Sin stock */
.variation-cell.out-of-stock {
    background-color: #ffd1d1;
    cursor: not-allowed;
    position: relative;
}
.variation-cell.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 1px;
    background-color: #999;
}


/* Estilo para los números */
.stock-placeholder-qty {
    font-size: 1.1em;
    color: #999;
    font-style: normal;
    pointer-events: none;
}

.quantity {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
}

/* Botón de limpiar fila */
.clear-row {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.clear-row:hover {
    background-color: #db9a9a;
    color: white;
    border-color: #dbb4b4;
}