/* ─────────────────────────────────────────────
   TableProduct — Tabla de tallas
───────────────────────────────────────────── */

.tp-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: inherit;
    width: 100%;
}

/* ── Bloque de características ───────────── */
.tp-caracteristicas {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
}

.tp-caracteristicas-title {
    margin: 0 0 8px 0;
    color: #1f1f1f;
    font-size: 20px;
    font-weight: 700;
}

.tp-caracteristicas-list {
    margin: 0;
    padding-left: 18px;
}

.tp-caracteristicas-list li {
    margin: 0 0 8px 0;
}

.tp-caracteristicas-list li:last-child {
    margin-bottom: 0;
}

.tp-caracteristicas-list strong {
    color: #111111;
}

/* ── Contenedor de cada subtabla ─────────── */
.tp-subtable {
    width: 100%;
    overflow-x: auto;           /* scroll horizontal en móvil */
    -webkit-overflow-scrolling: touch;
}

/* ── Tabla ───────────────────────────────── */
.tp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 360px;           /* evita que se comprima demasiado */
}

/* ── Encabezado ──────────────────────────── */
.tp-table thead tr {
    background-color: #6b6b6b;
    color: #ffffff !important;
}

.tp-table thead th {
    padding: 9px 12px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: #ffffff !important;
}

/* Primera columna del header: alineada a la izquierda */
.tp-table thead th.tp-th-label {
    text-align: left;
    padding-left: 14px;
    color: #ffffff !important;
}

/* ── Filas del cuerpo ────────────────────── */
.tp-table tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
}

.tp-table tbody tr:nth-child(even) {
    background-color: #e6e6e6;
}

.tp-table tbody tr:hover {
    background-color: #d9d9d9;
    transition: background-color 0.15s ease;
}

.tp-table tbody td {
    padding: 9px 12px;
    text-align: center;
    color: #333333;
    white-space: nowrap;
}

/* Primera columna del body: etiqueta de medida */
.tp-table tbody td.tp-row-label {
    text-align: left;
    padding-left: 14px;
    font-weight: 600;
    color: #444444;
    background-color: inherit;
}

/* ── Error ───────────────────────────────── */
.tp-error {
    color: #c0392b;
    font-size: 14px;
    padding: 8px 0;
}

/* ── Responsive (pantallas pequeñas) ─────── */
@media (max-width: 480px) {
    .tp-table {
        font-size: 12px;
    }

    .tp-table thead th,
    .tp-table tbody td {
        padding: 7px 8px;
    }
}
