/* ── Widget: Product Specs Table ─────────────────────────────── */

.cw-product-specs {
    width: 100%;
}

.cw-specs-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #282929;
    line-height: 1.3;
}

.cw-specs-wrap {
    width: 100%;
    overflow: hidden;
    border: none;
    /* isolation:isolate crea un nuevo stacking context. Junto con
       overflow:hidden garantiza que el border-radius clipee las esquinas
       internas de la tabla (header oscuro + celdas con backgrounds)
       incluso cuando border-collapse:collapse interactúa raro con el
       radius en algunos navegadores. */
    isolation: isolate;
    position: relative;
}

.cw-specs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Reset total de bordes — anula cualquier regla del tema (Hello, Astra, etc.) */
.cw-specs-table,
.cw-specs-table tr,
.cw-specs-table th,
.cw-specs-table td {
    border: none;
}

.cw-specs-table thead tr {
    background: #282929;
}

.cw-specs-table th {
    padding: 14px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/*
 * Backgrounds en td (no en tr): la celda pinta sobre el tr, así tr:hover del tema
 * queda invisible debajo. Orden: hover td primero → nth-child td después (mismo peso,
 * viene después = gana). CSS de Elementor se inyecta aún más tarde → gana en hover configurado.
 */
.cw-specs-table tbody tr:hover td {
    background: inherit;
}

.cw-specs-table tbody tr:nth-child(odd) td {
    background: #f9fafb;
}

.cw-specs-table tbody tr:nth-child(even) td {
    background: #ffffff;
}

/* La última fila nunca lleva borde inferior, incluso cuando los divisores están activos */
.cw-specs-table tbody tr:last-child td {
    border-bottom: none !important;
}

.cw-specs-table td {
    padding: 13px 20px;
    vertical-align: middle;
    word-break: break-word;
}

.cw-specs-table td.cw-spec-key {
    color: #6b7280;
    font-weight: 500;
}

.cw-specs-table td.cw-spec-val {
    color: #282929;
}

/* ── Responsive móvil ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .cw-specs-table th {
        padding: 11px 12px;
        font-size: 12px;
        white-space: normal;
    }

    .cw-specs-table td {
        padding: 11px 12px;
        font-size: 13px;
    }
}
